summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-10-06 16:15:57 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2017-10-06 16:35:43 +0000
commitdbcbcdf4f59dc0e26f2a7218b2c633dbc35433e3 (patch)
tree17755db00857ce31ecb2ac66f51cfa35a738072a
parent3983c1c34d7c124f3a065af5913e7f3496373b41 (diff)
downloadbubblewrap-dbcbcdf4f59dc0e26f2a7218b2c633dbc35433e3.tar.gz
tests: Ensure non-root users have access to libcap tools
On Debian systems, by default only root has /{usr/,}sbin in PATH. Signed-off-by: Simon McVittie <smcv@collabora.com> Closes: #228 Approved by: cgwalters
-rwxr-xr-xtests/test-run.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-run.sh b/tests/test-run.sh
index 4712418..c6d2f4a 100755
--- a/tests/test-run.sh
+++ b/tests/test-run.sh
@@ -2,6 +2,9 @@
set -xeuo pipefail
+# Make sure /sbin/getpcaps etc. are in our PATH even if non-root
+PATH="$PATH:/usr/sbin:/sbin"
+
srcd=$(cd $(dirname $0) && pwd)
. ${srcd}/libtest-core.sh