From 8b9844e4f1ee4b26fcbc64f73e4e621f6ff0e63f Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Fri, 21 Sep 2018 18:45:10 +0200 Subject: tests: skip more tests if capabilities/seccomp of host differs --- test/filters/filters.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/filters/filters.sh') diff --git a/test/filters/filters.sh b/test/filters/filters.sh index d0a34ccc5..72d699415 100755 --- a/test/filters/filters.sh +++ b/test/filters/filters.sh @@ -35,8 +35,13 @@ echo "TESTING: seccomp postexec (test/filters/seccomp-postexec.exp)" echo "TESTING: noroot (test/filters/noroot.exp)" ./noroot.exp -echo "TESTING: capabilities (test/filters/caps.exp)" -./caps.exp + +if grep -q "^CapBnd:\\s0000003fffffffff" /proc/self/status; then + echo "TESTING: capabilities (test/filters/caps.exp)" + ./caps.exp +else + echo "TESTING SKIP: other capabilities than expected (test/filters/caps.exp)" +fi echo "TESTING: capabilities print (test/filters/caps-print.exp)" ./caps-print.exp -- cgit v1.2.3-54-g00ecf