diff options
author | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-12 22:07:23 +0000 |
---|---|---|
committer | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-12 22:09:11 +0000 |
commit | a29f535b74857ab98280f369fcb8e68ebeb08131 (patch) | |
tree | 6a7c299da8145f7dae37dfc5924a79b42e9d49fa | |
parent | 010bde7f370109097b2d30bd8957d240a5092173 (diff) | |
download | bubblewrap-a29f535b74857ab98280f369fcb8e68ebeb08131.tar.gz |
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>
-rwxr-xr-x | tests/test-run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |