aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.1.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
commitdda687ed2a748cb262b317e0c7fdf4a9c4ae2d31 (patch)
tree144fba235fec87d74deff110aaa71891174b3eef /test/features/1.1.exp
parent0.9.36 testing (diff)
downloadfirejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.gz
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.zst
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.zip
0.9.36 testing
Diffstat (limited to 'test/features/1.1.exp')
-rwxr-xr-xtest/features/1.1.exp31
1 files changed, 17 insertions, 14 deletions
diff --git a/test/features/1.1.exp b/test/features/1.1.exp
index dafa4630e..0d02b54c1 100755
--- a/test/features/1.1.exp
+++ b/test/features/1.1.exp
@@ -7,6 +7,7 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9set overlay [lindex $argv 0] 9set overlay [lindex $argv 0]
10set chroot [lindex $argv 1]
10 11
11# 12#
12# N 13# N
@@ -52,21 +53,23 @@ if { $overlay == "overlay" } {
52# 53#
53# C 54# C
54# 55#
55send -- "firejail --noprofile --chroot=/tmp/chroot\r" 56if { $chroot == "chroot" } {
56expect { 57 send -- "firejail --noprofile --chroot=/tmp/chroot\r"
57 timeout {puts "TESTING ERROR 4\n";exit} 58 expect {
58 "Child process initialized" 59 timeout {puts "TESTING ERROR 4\n";exit}
59} 60 "Child process initialized"
60sleep 1 61 }
61 62 sleep 1
62send -- "ls -l /boot\r" 63
63expect { 64 send -- "ls -l /boot\r"
64 timeout {puts "TESTING ERROR 5\n";exit} 65 expect {
65 "Permission denied" 66 timeout {puts "TESTING ERROR 5\n";exit}
67 "Permission denied"
68 }
69 after 100
70 send -- "exit\r"
71 sleep 1
66} 72}
67after 100
68send -- "exit\r"
69sleep 1
70 73
71 74
72puts "\nall done\n" 75puts "\nall done\n"