From a29f535b74857ab98280f369fcb8e68ebeb08131 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Mon, 12 Sep 2022 22:07:23 +0000 Subject: test-run: replace nonstandard `which` `command -v` is the standardized replacement for `which` and never writes to stderr Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com> --- tests/test-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-run.sh b/tests/test-run.sh index da92ffb..c8de36d 100755 --- a/tests/test-run.sh +++ b/tests/test-run.sh @@ -95,7 +95,7 @@ done echo "ok namespace id info in info and json-status fd" -if ! which strace >/dev/null 2>/dev/null || ! strace -h | grep -v -e default | grep -e fault >/dev/null; then +if ! command -v strace >/dev/null || ! strace -h | grep -v -e default | grep -e fault >/dev/null; then echo "ok - # SKIP no strace fault injection" else ! strace -o /dev/null -f -e trace=prctl -e fault=prctl:when=39 $RUN --die-with-parent --json-status-fd 42 true 42>json-status.json -- cgit v1.2.1