test: do not use `which` to find an exec path in the test
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 06 Jan 2022 17:15:49 +0100
changeset 48655 c95ace94f3ad
parent 48654 eb5c33f1d08f
child 48656 100481195114
test: do not use `which` to find an exec path in the test Posix is deprecated `which` in favor of `command -v`… which does not provide the same feature. Debian is warning about this deprecation and this get annoying. Differential Revision: https://phab.mercurial-scm.org/D11983
tests/test-run-tests.t
--- a/tests/test-run-tests.t	Fri Jan 14 18:17:55 2022 +0100
+++ b/tests/test-run-tests.t	Thu Jan 06 17:15:49 2022 +0100
@@ -21,7 +21,7 @@
 error paths
 
 #if symlink
-  $ ln -s `which true` hg
+  $ ln -s "/"bin"/"true hg
   $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
   ^warning: --with-hg should specify an hg script, not: (true|coreutils)$ (re)
   running 0 tests using 0 parallel processes