From dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 23 Dec 2015 16:42:58 -0500 Subject: 0.9.36 testing --- test/features/1.1.exp | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'test/features/1.1.exp') 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 spawn $env(SHELL) match_max 100000 set overlay [lindex $argv 0] +set chroot [lindex $argv 1] # # N @@ -52,21 +53,23 @@ if { $overlay == "overlay" } { # # C # -send -- "firejail --noprofile --chroot=/tmp/chroot\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "ls -l /boot\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "Permission denied" +if { $chroot == "chroot" } { + send -- "firejail --noprofile --chroot=/tmp/chroot\r" + expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "ls -l /boot\r" + expect { + timeout {puts "TESTING ERROR 5\n";exit} + "Permission denied" + } + after 100 + send -- "exit\r" + sleep 1 } -after 100 -send -- "exit\r" -sleep 1 puts "\nall done\n" -- cgit v1.2.3-70-g09d2