changeset 48655:c95ace94f3ad

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 06 Jan 2022 17:15:49 +0100
parents eb5c33f1d08f
children 100481195114
files tests/test-run-tests.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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