aboutsummaryrefslogtreecommitdiffstats
path: root/test/profiles/all-profiles.sh
diff options
context:
space:
mode:
authorLibravatar a1346054 <36859588+a1346054@users.noreply.github.com>2022-09-13 19:47:01 +0000
committerLibravatar a1346054 <36859588+a1346054@users.noreply.github.com>2022-09-13 22:37:18 +0000
commitd7826c2384b6aa655d92b0570bebdc9cef8cb393 (patch)
treebaf5c9a2353453a244b72581bd992ea503f741bb /test/profiles/all-profiles.sh
parenttests: directly test for presence of command (diff)
downloadfirejail-d7826c2384b6aa655d92b0570bebdc9cef8cb393.tar.gz
firejail-d7826c2384b6aa655d92b0570bebdc9cef8cb393.tar.zst
firejail-d7826c2384b6aa655d92b0570bebdc9cef8cb393.zip
tests: use an array
Diffstat (limited to 'test/profiles/all-profiles.sh')
-rwxr-xr-xtest/profiles/all-profiles.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/profiles/all-profiles.sh b/test/profiles/all-profiles.sh
index cc17b6b00..a550afe23 100755
--- a/test/profiles/all-profiles.sh
+++ b/test/profiles/all-profiles.sh
@@ -37,11 +37,11 @@ echo "TESTING: profile read-only links (test/profiles/profile_readonly.exp)"
37echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)" 37echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)"
38./profile_noperm.exp 38./profile_noperm.exp
39 39
40PROFILES=`ls /etc/firejail/*.profile` 40profiles=( /etc/firejail/*.profile )
41echo "TESTING: default profiles installed in /etc" 41echo "TESTING: default profiles installed in /etc"
42 42
43for PROFILE in $PROFILES 43for profile in "${profiles[@]}"
44do 44do
45 echo "TESTING: $PROFILE" 45 echo "TESTING: $profile"
46 ./test-profile.exp $PROFILE 46 ./test-profile.exp "$profile"
47done 47done