summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2023-03-13 17:29:21 -0400
committerGitHub <noreply@github.com>2023-03-13 17:29:21 -0400
commite7c414cbff3fad73e4527a280db494b2dcbc7b03 (patch)
tree4931e50b3b228cbd3a3056a3687cbe6eae10e55c
parent751cca707aa74140868816a2f2a01c989686c5ee (diff)
parent3500ad0443e59c3181725e7b78d3673048af703a (diff)
downloadostree-e7c414cbff3fad73e4527a280db494b2dcbc7b03.tar.gz
Merge pull request #2821 from smcv/sbin-path
tests: Ensure non-root users have access to libcap tools
-rwxr-xr-xtests/libtest.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh
index 264094b1..963bc923 100755
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -32,6 +32,9 @@ else
fi
. ${test_srcdir}/libtest-core.sh
+# Make sure /sbin/capsh etc. are in our PATH even if non-root
+PATH="$PATH:/usr/sbin:/sbin"
+
# Array of expressions to execute when exiting. Each expression should
# be a single string (quoting if necessary) that will be eval'd. To add
# a command to run on exit, append to the libtest_exit_cmds array like