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
--- 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