small test fixes

This commit is contained in:
netblue30 2023-01-20 20:18:32 -05:00
parent ec4cbf547e
commit 52898f467a
2 changed files with 6 additions and 6 deletions

View file

@ -38,7 +38,7 @@ expect {
"Installing /run/firejail/mnt/seccomp/seccomp.protocol seccomp filter"
}
after 100
send -- "ls -l /run/firejail/mnt/seccomp | grep -c seccomp\r"
send -- "wc -l /run/firejail/mnt/seccomp/seccomp.list\r"
expect {
timeout {puts "TESTING ERROR 8\n";exit}
"3"
@ -61,7 +61,7 @@ expect {
"monitoring"
}
after 100
send -- "ls -l /run/firejail/mnt | grep -c seccomp\r"
send -- "wc -l /run/firejail/mnt/seccomp/seccomp.list\r"
expect {
timeout {puts "TESTING ERROR 13\n";exit}
"4"
@ -87,10 +87,10 @@ expect {
"/run/firejail/mnt/seccomp/seccomp.protocol seccomp filter"
}
after 100
send -- "ls -l /run/firejail/mnt/seccomp | grep -c seccomp\r"
send -- "wc -l /run/firejail/mnt/seccomp/seccomp.list\r"
expect {
timeout {puts "TESTING ERROR 18\n";exit}
"10"
"7"
}
send -- "exit\r"
sleep 1

View file

@ -8,10 +8,10 @@ spawn $env(SHELL)
match_max 100000
send -- "mkdir --mode=700 ~/.cache\r"
after 100
after 500
send -- "touch ~/.cache/abcdefg\r"
after 100
after 500
if { ! [file exists ~/.cache/abcdefg] } {
puts "TESTING ERROR 0\n"