diff options
author | 2015-12-23 12:38:13 -0500 | |
---|---|---|
committer | 2015-12-23 12:38:13 -0500 | |
commit | 686bc51e38b0718651e82818871b0bf1451c8b21 (patch) | |
tree | 521f5fc2123c4782493fc86b46cc41533acb85db /test/features/3.1.exp | |
parent | 0.9.36 testing (diff) | |
download | firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.gz firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.zst firejail-686bc51e38b0718651e82818871b0bf1451c8b21.zip |
0.9.36 testing
Diffstat (limited to 'test/features/3.1.exp')
-rwxr-xr-x | test/features/3.1.exp | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/test/features/3.1.exp b/test/features/3.1.exp index 6abbf94a5..13ec1b6be 100755 --- a/test/features/3.1.exp +++ b/test/features/3.1.exp | |||
@@ -6,6 +6,7 @@ | |||
6 | set timeout 10 | 6 | set timeout 10 |
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | set overlay [lindex $argv 0] | ||
9 | 10 | ||
10 | # | 11 | # |
11 | # N | 12 | # N |
@@ -31,21 +32,23 @@ sleep 1 | |||
31 | # | 32 | # |
32 | # O | 33 | # O |
33 | # | 34 | # |
34 | send -- "firejail --noprofile --overlay --tmpfs=/home/netblue/.config\r" | 35 | if { $overlay == "overlay" } { |
35 | expect { | 36 | send -- "firejail --noprofile --overlay --tmpfs=/home/netblue/.config\r" |
36 | timeout {puts "TESTING ERROR 2\n";exit} | 37 | expect { |
37 | "Child process initialized" | 38 | timeout {puts "TESTING ERROR 2\n";exit} |
39 | "Child process initialized" | ||
40 | } | ||
41 | sleep 1 | ||
42 | |||
43 | send -- "ls ~/.config | wc -l\r" | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 3\n";exit} | ||
46 | "0" | ||
47 | } | ||
48 | after 100 | ||
49 | send -- "exit\r" | ||
50 | sleep 1 | ||
38 | } | 51 | } |
39 | sleep 1 | ||
40 | |||
41 | send -- "ls ~/.config | wc -l\r" | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 3\n";exit} | ||
44 | "0" | ||
45 | } | ||
46 | after 100 | ||
47 | send -- "exit\r" | ||
48 | sleep 1 | ||
49 | 52 | ||
50 | # | 53 | # |
51 | # C | 54 | # C |