changeset 49695:2c346c1c75ec stable

tests: use an all too familiar executable in test-run-tests.t (issue6661) true(1) sometimes lives in /usr/bin/, and so this test fails on such systems. We also can't use which(1), because it's apparently not POSIX and Debian complains about it [1]. We also cannot really create a script and chmod +x it, because this is a symlink case, execbit case is slightly below. So let's use something that we know is executable, but not hg itself.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 01 Dec 2022 18:01:24 +0400
parents 5c095119bff4
children c52435820bbd
files tests/test-run-tests.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-run-tests.t	Thu Dec 01 15:27:11 2022 +0400
+++ b/tests/test-run-tests.t	Thu Dec 01 18:01:24 2022 +0400
@@ -21,9 +21,9 @@
 error paths
 
 #if symlink
-  $ ln -s "/"bin"/"true hg
+  $ ln -s $TESTDIR/run-tests.py hg
   $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
-  ^warning: --with-hg should specify an hg script, not: (true|coreutils)$ (re)
+  warning: --with-hg should specify an hg script, not: run-tests.py
   running 0 tests using 0 parallel processes 
   
   # Ran 0 tests, 0 skipped, 0 failed.