diff options
Diffstat (limited to 'test/profiles/profiles.sh')
-rwxr-xr-x | test/profiles/profiles.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/profiles/profiles.sh b/test/profiles/profiles.sh index ce2fa32c4..8808bc9d2 100755 --- a/test/profiles/profiles.sh +++ b/test/profiles/profiles.sh | |||
@@ -37,15 +37,8 @@ echo "TESTING: profile read-only links (test/profiles/profile_readonly.exp)" | |||
37 | echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)" | 37 | echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)" |
38 | ./profile_noperm.exp | 38 | ./profile_noperm.exp |
39 | 39 | ||
40 | # GitHub CI doesn't have a /run/user/$UID directory. Using it to test a small number of profiles. | 40 | PROFILES=`ls /etc/firejail/transmission*.profile /etc/firejail/fi*.profile /etc/firejail/fl*.profile /etc/firejail/free*.profile` |
41 | UID=`id -u` | 41 | echo "TESTING: small number of default profiles installed in /etc" |
42 | if [ -d "/run/user/$UID" ]; then | ||
43 | PROFILES=`ls /etc/firejail/*.profile` | ||
44 | echo "TESTING: default profiles installed in /etc" | ||
45 | else | ||
46 | PROFILES=`ls /etc/firejail/transmission*.profile /etc/firejail/fi*.profile /etc/firejail/fl*.profile /etc/firejail/free*.profile` | ||
47 | echo "TESTING: small number of default profiles installed in /etc" | ||
48 | fi | ||
49 | 42 | ||
50 | for PROFILE in $PROFILES | 43 | for PROFILE in $PROFILES |
51 | do | 44 | do |