diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0302-home-access.sh')
-rwxr-xr-xtests/t0302-home-access.sh2
1 file changed, 1 insertion, 1 deletion
diff --git a/tests/t0302-home-access.sh b/tests/t0302-home-access.sh
index 7078596..89aa00f 100755
--- a/tests/t0302-home-access.sh
+++ b/tests/t0302-home-access.sh
@@ -12,7 +12,7 @@ test_description='Ensure that git does not access $HOME'
# strace needs ptrace, which containers and hardened kernels refuse even
# where the binary is installed, so a working run is checked as well as a
# present binary.
-test -n "$(which strace 2>/dev/null)" || {
+command -v strace >/dev/null 2>&1 || {
skip_all='Skipping access validation tests: strace not found'
test_done
exit