Skip to content

Commit

Permalink
add buck option to allow selectively disable test for CI
Browse files Browse the repository at this point in the history
Summary: add buck option to allow selectively disable test

Reviewed By: andrewjcg

Differential Revision: D7360106

fbshipit-source-id: 78db5c6b01e2c71be0f3b723bf55cf12354ddedd
  • Loading branch information
tracelogfb authored and hhvm-bot committed Mar 22, 2018
1 parent 37d1d8c commit f9b95a9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hphp/test/DEFS
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ def verify_unittest(suite, repo, dir, mode='interp,jit',
cli_server=0, hhcodegen=False, use_hackc=False, cli_server=0, hhcodegen=False, use_hackc=False,
hhas_roundtrip=False, target_suffix='', hhas_roundtrip=False, target_suffix='',
extra_args=[], blacklist=None): extra_args=[], blacklist=None):

# hphp_skip_repo_test and hphp_skip_non_repo_test let us enable or disable
# tests based on repo mode. This is useful to shard our tests into different
# sets for CI runs.
if repo and read_config('fbcode', 'hphp_skip_repo_test'):
return

if not repo and read_config('fbcode', 'hphp_skip_non_repo_test'):
return

target_name = 'verify_' + suite + '_' + mode + \ target_name = 'verify_' + suite + '_' + mode + \
('_repo' if repo else '') + \ ('_repo' if repo else '') + \
('_relocate' if relocate else '') + \ ('_relocate' if relocate else '') + \
Expand Down

0 comments on commit f9b95a9

Please sign in to comment.