aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-08-14 10:54:57 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-08-14 10:56:51 +0200
commit1eb8418af00655441a443ee2633f090c7144dd9b (patch)
treee9ca1e34bd2a0089ff34313a5a5d019058e9b057
parentimport teams profile (diff)
downloadfirejail-1eb8418af00655441a443ee2633f090c7144dd9b.tar.gz
firejail-1eb8418af00655441a443ee2633f090c7144dd9b.tar.zst
firejail-1eb8418af00655441a443ee2633f090c7144dd9b.zip
tests: fix false-positive match on modules
The systemd service file ./systemd/system/sysinit.target.wants/systemd-modules-load.service can exist which will lead to a match for "modules", though we are only looking for the modules directory. (cherry picked from commit 7373a5bb938cd06c8d040c4412d6bf1940f5af38)
-rwxr-xr-xtest/fs/private-lib.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fs/private-lib.exp b/test/fs/private-lib.exp
index 777424ebe..129fa5b98 100755
--- a/test/fs/private-lib.exp
+++ b/test/fs/private-lib.exp
@@ -30,8 +30,8 @@ after 100
30send -- "cd /lib; find .\r" 30send -- "cd /lib; find .\r"
31expect { 31expect {
32 timeout {puts "TESTING ERROR 5\n";exit} 32 timeout {puts "TESTING ERROR 5\n";exit}
33 "modules" {puts "TESTING ERROR 6\n";exit} 33 "/modules" {puts "TESTING ERROR 6\n";exit}
34 "firmware" {puts "TESTING ERROR 7\n";exit} 34 "/firmware" {puts "TESTING ERROR 7\n";exit}
35 "libc.so" 35 "libc.so"
36} 36}
37after 100 37after 100