hghave: add debugruntest feature

Summary:
This allows tests to have parts that are incompatible with one of the
test runners.

Reviewed By: DurhamG

Differential Revision: D34725125

fbshipit-source-id: c2639e059011276a160c1c141ae1c3dccc65bd8e
This commit is contained in:
Jun Wu 2022-04-22 19:18:56 -07:00 committed by Facebook GitHub Bot
parent c427d4618a
commit ab9029c6bc
2 changed files with 10 additions and 0 deletions

View File

@ -821,3 +821,8 @@ def has_mononoke():
@check("bucktest", "Tests are being run from Buck") @check("bucktest", "Tests are being run from Buck")
def has_bucktest(): def has_bucktest():
return "HGTEST_HG" in os.environ return "HGTEST_HG" in os.environ
@check("bash", "running via real bash")
def has_bash():
return False

View File

@ -817,3 +817,8 @@ def has_mononoke():
@check("bucktest", "Tests are being run from Buck") @check("bucktest", "Tests are being run from Buck")
def has_bucktest(): def has_bucktest():
return "HGTEST_HG" in os.environ return "HGTEST_HG" in os.environ
@check("bash", "running via real bash")
def has_bash():
return True