diff options
author | netblue30 <netblue30@yahoo.com> | 2015-10-08 08:40:58 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-10-08 08:40:58 -0400 |
commit | 8c5254162b0f3f7635f1af29b52a93c021b77c25 (patch) | |
tree | fcebaf44fd172fa3b18dea503ce398a4a52373cd /test/test-profile.exp | |
parent | fixed transmission-qt profile (diff) | |
download | firejail-8c5254162b0f3f7635f1af29b52a93c021b77c25.tar.gz firejail-8c5254162b0f3f7635f1af29b52a93c021b77c25.tar.zst firejail-8c5254162b0f3f7635f1af29b52a93c021b77c25.zip |
fixed transmission-qt.profile
Diffstat (limited to 'test/test-profile.exp')
-rwxr-xr-x | test/test-profile.exp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test-profile.exp b/test/test-profile.exp new file mode 100755 index 000000000..89fe9c10a --- /dev/null +++ b/test/test-profile.exp | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | if { $argc != 1 } { | ||
8 | puts "TESTING ERROR: argument missing" | ||
9 | puts "Usage: test-profile.exp profile_name" | ||
10 | exit | ||
11 | } | ||
12 | |||
13 | send -- "firejail --profile=$argv\r" | ||
14 | expect { | ||
15 | timeout {puts "TESTING ERROR 0\n";exit} | ||
16 | "Child process initialized" | ||
17 | } | ||
18 | send -- "exit\r" | ||
19 | after 100 | ||
20 | puts "\n" | ||