diff options
author | 2022-07-10 11:07:46 -0400 | |
---|---|---|
committer | 2022-07-10 11:07:46 -0400 | |
commit | 502b9bbd908ef724f1fa64e29ceb3d430907b9c0 (patch) | |
tree | 623913c654c470223dd5295cf663a00362d5f522 /test/profiles/profiles.sh | |
parent | Merge pull request #5242 from alkim0/master (diff) | |
download | firejail-502b9bbd908ef724f1fa64e29ceb3d430907b9c0.tar.gz firejail-502b9bbd908ef724f1fa64e29ceb3d430907b9c0.tar.zst firejail-502b9bbd908ef724f1fa64e29ceb3d430907b9c0.zip |
testing fix
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 |