mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 06:06:02 -06:00
test: fix unescaped newlines in error messages (#7146)
Commands used to search and replace:
$ git grep -IElz 'ERROR [0-9]+n"' -- test |
xargs -0 perl -pi -e 's/(ERROR [0-9]+)n"/$1\\n"/'
Related commits:
* 63e16bfcd ("major cleanup and testing", 2016-11-13)
* 2155203b3 ("xdg macro testing", 2018-08-07)
This commit is contained in:
parent
9a83128c69
commit
68427a2333
2 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ sleep 1
|
|||
|
||||
send -- "firejail --profile=./macro-blacklist.profile ls ~/Documents\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 9n";exit}
|
||||
timeout {puts "TESTING ERROR 9\n";exit}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
|
|
@ -63,11 +63,11 @@ sleep 1
|
|||
|
||||
send -- "firejail --profile=./macro-blacklist.profile ls ~/Downloads\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 11n";exit}
|
||||
timeout {puts "TESTING ERROR 11\n";exit}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 12n";exit}
|
||||
timeout {puts "TESTING ERROR 12\n";exit}
|
||||
"Permission denied"
|
||||
}
|
||||
sleep 1
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ send -- "firejail --get=test ~/lstesting\r"
|
|||
sleep 1
|
||||
send -- "cat lstesting\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2n";exit}
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"my_testing"
|
||||
}
|
||||
after 100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue