mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
fix whitelist/allow in make test-utils
This commit is contained in:
parent
0043826934
commit
e4307b409b
2 changed files with 7 additions and 6 deletions
|
|
@ -7,13 +7,13 @@ set timeout 10
|
|||
spawn $env(SHELL)
|
||||
match_max 100000
|
||||
|
||||
send -- "echo testing > ~/firejail-test-file-7699\r"
|
||||
send -- "echo testing > ~/_firejail-test-file\r"
|
||||
after 100
|
||||
|
||||
send -- "firejail --build cat ~/firejail-test-file-7699\r"
|
||||
send -- "firejail --build cat ~/_firejail-test-file\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"whitelist $\{HOME\}/firejail-test-file-7699"
|
||||
"allow $\{HOME\}/_firejail-test-file"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
|
|
@ -77,7 +77,8 @@ expect {
|
|||
}
|
||||
after 100
|
||||
|
||||
|
||||
send -- "rm -f ~/_firejail-test-file\r"
|
||||
after 100
|
||||
|
||||
send -- "firejail --build cat /etc/passwd\r"
|
||||
expect {
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
|
|||
|
||||
echo "TESTING: build (test/utils/build.exp)"
|
||||
./build.exp
|
||||
rm -f ~/firejail-test-file-7699
|
||||
rm -f firejail-test-file-4388
|
||||
rm -f ~/_firejail-test-file
|
||||
rm -f _firejail-test-file
|
||||
|
||||
echo "TESTING: name (test/utils/name.exp)"
|
||||
./name.exp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue