test/fs/macro.exp: reduce timeout and sleep

* timeout: 10s -> 1s
* sleep: 1000ms -> 100ms
This commit is contained in:
Kelvin M. Klann 2026-04-24 04:59:59 -03:00
parent 096aa0337f
commit 574885778a

View file

@ -3,7 +3,7 @@
# Copyright (C) 2014-2026 Firejail Authors
# License GPL v2
set timeout 10
set timeout 1
spawn $env(SHELL)
match_max 100000
@ -37,7 +37,7 @@ expect {
timeout {puts "TESTING ERROR 6\n";exit}
"Videos"
}
sleep 1
after 100
send -- "firejail --profile=./macro-blacklist.profile ls ~/Desktop\r"
expect {
@ -48,7 +48,7 @@ expect {
timeout {puts "TESTING ERROR 8\n";exit}
"Permission denied"
}
sleep 1
after 100
send -- "firejail --profile=./macro-blacklist.profile ls ~/Documents\r"
expect {
@ -59,7 +59,7 @@ expect {
timeout {puts "TESTING ERROR 10\n";exit}
"Permission denied"
}
sleep 1
after 100
send -- "firejail --profile=./macro-blacklist.profile ls ~/Downloads\r"
expect {
@ -70,7 +70,7 @@ expect {
timeout {puts "TESTING ERROR 12\n";exit}
"Permission denied"
}
sleep 1
after 100
send -- "firejail --profile=./macro-blacklist.profile ls ~/Music\r"
expect {
@ -81,7 +81,7 @@ expect {
timeout {puts "TESTING ERROR 14\n";exit}
"Permission denied"
}
sleep 1
after 100
send -- "firejail --profile=./macro-blacklist.profile ls ~/Pictures\r"
expect {
@ -92,7 +92,7 @@ expect {
timeout {puts "TESTING ERROR 16\n";exit}
"Permission denied"
}
sleep 1
after 100
send -- "firejail --profile=./macro-blacklist.profile ls ~/Videos\r"
expect {
@ -103,7 +103,7 @@ expect {
timeout {puts "TESTING ERROR 18\n";exit}
"Permission denied"
}
sleep 1
after 100
send -- "firejail --profile=./macro-readonly.profile touch ~/Desktop/_firejail_test_file\r"
expect {
@ -114,7 +114,7 @@ expect {
timeout {puts "TESTING ERROR 20\n";exit}
"Read-only file system"
}
sleep 1
after 100
send -- "firejail --profile=./macro-readonly.profile touch ~/Documents/_firejail_test_file\r"
expect {
@ -125,7 +125,7 @@ expect {
timeout {puts "TESTING ERROR 22\n";exit}
"Read-only file system"
}
sleep 1
after 100
send -- "firejail --profile=./macro-readonly.profile touch ~/Downloads/_firejail_test_file\r"
expect {
@ -136,7 +136,7 @@ expect {
timeout {puts "TESTING ERROR 24\n";exit}
"Read-only file system"
}
sleep 1
after 100
send -- "firejail --profile=./macro-readonly.profile touch ~/Music/_firejail_test_file\r"
expect {
@ -147,7 +147,7 @@ expect {
timeout {puts "TESTING ERROR 26\n";exit}
"Read-only file system"
}
sleep 1
after 100
send -- "firejail --profile=./macro-readonly.profile touch ~/Pictures/_firejail_test_file\r"
expect {
@ -158,7 +158,7 @@ expect {
timeout {puts "TESTING ERROR 28\n";exit}
"Read-only file system"
}
sleep 1
after 100
send -- "firejail --profile=./macro-readonly.profile touch ~/Videos/_firejail_test_file\r"
expect {
@ -169,6 +169,6 @@ expect {
timeout {puts "TESTING ERROR 30\n";exit}
"Read-only file system"
}
sleep 1
after 100
puts "\nall done\n"