run-test: act that we requires MSYS to run the test on Windows
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 11 Jul 2021 16:09:38 +0200
changeset 47638 55a715c36e3b
parent 47637 d0c0d7b98014
child 47639 e1130abae834
run-test: act that we requires MSYS to run the test on Windows If this ever change we can drop that constrains, however for now it seems clear to be clear about this limitation. Differential Revision: https://phab.mercurial-scm.org/D11080
tests/run-tests.py
--- a/tests/run-tests.py	Sun Jul 11 15:41:18 2021 +0200
+++ b/tests/run-tests.py	Sun Jul 11 16:09:38 2021 +0200
@@ -3990,6 +3990,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: