Patchwork D11080: run-test: act that we requires MSYS to run the test on Windows

login
register
mail settings
Submitter phabricator
Date July 11, 2021, 9:38 p.m.
Message ID <differential-rev-PHID-DREV-2f7rgf6c7y3iqeoynbsn-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49396/
State Superseded
Headers show

Comments

phabricator - July 11, 2021, 9:38 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  If this ever change we can drop that constrains, however for now it seems clear
  to be clear about this limitation.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11080

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -3991,6 +3991,15 @@ 
 
 
 if __name__ == '__main__':
+    if WINDOWS and not os.getenv('MSYSTEM'):
+        print('cannot run test on Windows without MSYSTEM', file=sys.stderr)
+        print(
+            '(if you need to do so contact the mercurial devs: '
+            'mercurial@mercurial-scm.org)',
+            file=sys.stderr,
+        )
+        sys.exit(255)
+
     runner = TestRunner()
 
     try: