diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/utils/build.exp | 9 | ||||
-rwxr-xr-x | test/utils/utils.sh | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/test/utils/build.exp b/test/utils/build.exp index 7fbe969a4..104ac037c 100755 --- a/test/utils/build.exp +++ b/test/utils/build.exp | |||
@@ -7,13 +7,13 @@ set timeout 10 | |||
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | send -- "echo testing > ~/firejail-test-file-7699\r" | 10 | send -- "echo testing > ~/_firejail-test-file\r" |
11 | after 100 | 11 | after 100 |
12 | 12 | ||
13 | send -- "firejail --build cat ~/firejail-test-file-7699\r" | 13 | send -- "firejail --build cat ~/_firejail-test-file\r" |
14 | expect { | 14 | expect { |
15 | timeout {puts "TESTING ERROR 0\n";exit} | 15 | timeout {puts "TESTING ERROR 0\n";exit} |
16 | "whitelist $\{HOME\}/firejail-test-file-7699" | 16 | "allow $\{HOME\}/_firejail-test-file" |
17 | } | 17 | } |
18 | expect { | 18 | expect { |
19 | timeout {puts "TESTING ERROR 1\n";exit} | 19 | timeout {puts "TESTING ERROR 1\n";exit} |
@@ -77,7 +77,8 @@ expect { | |||
77 | } | 77 | } |
78 | after 100 | 78 | after 100 |
79 | 79 | ||
80 | 80 | send -- "rm -f ~/_firejail-test-file\r" | |
81 | after 100 | ||
81 | 82 | ||
82 | send -- "firejail --build cat /etc/passwd\r" | 83 | send -- "firejail --build cat /etc/passwd\r" |
83 | expect { | 84 | expect { |
diff --git a/test/utils/utils.sh b/test/utils/utils.sh index c021d6287..e3e24bd9a 100755 --- a/test/utils/utils.sh +++ b/test/utils/utils.sh | |||
@@ -15,8 +15,8 @@ export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail" | |||
15 | 15 | ||
16 | echo "TESTING: build (test/utils/build.exp)" | 16 | echo "TESTING: build (test/utils/build.exp)" |
17 | ./build.exp | 17 | ./build.exp |
18 | rm -f ~/firejail-test-file-7699 | 18 | rm -f ~/_firejail-test-file |
19 | rm -f firejail-test-file-4388 | 19 | rm -f _firejail-test-file |
20 | 20 | ||
21 | echo "TESTING: name (test/utils/name.exp)" | 21 | echo "TESTING: name (test/utils/name.exp)" |
22 | ./name.exp | 22 | ./name.exp |