diff tests/hghave.py @ 47312:97f04eaafa65

tests: add req on bash for test-transaction-rollback-on-sigpipe (issue6429) I think we could work around this by rewriting the helper scripts in Python, but I don't want to deal with that now and this should prevent failures due to a lack of bash. Differential Revision: https://phab.mercurial-scm.org/D10732
author Augie Fackler <augie@google.com>
date Tue, 18 May 2021 13:24:41 -0400
parents 40b51c28b242
children 338623a2ebf2
line wrap: on
line diff
--- a/tests/hghave.py	Mon May 17 15:24:46 2021 +0200
+++ b/tests/hghave.py	Tue May 18 13:24:41 2021 -0400
@@ -1129,3 +1129,8 @@
         return True
     except ImportError:
         return False
+
+
+@check("bash", "bash shell")
+def has_bash():
+    return matchoutput("bash -c 'echo hi'", b'^hi$')