changeset 47638:55a715c36e3b

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 11 Jul 2021 16:09:38 +0200
parents d0c0d7b98014
children e1130abae834
files tests/run-tests.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: