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/3.1.exp | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'test/features/3.1.exp') diff --git a/test/features/3.1.exp b/test/features/3.1.exp index 13ec1b6be..3ee04c4de 100755 --- a/test/features/3.1.exp +++ b/test/features/3.1.exp @@ -53,23 +53,25 @@ if { $overlay == "overlay" } { # # C # -send -- "touch /tmp/chroot/home/netblue/.config/firejail-test-file\r" -sleep 1 -send -- "firejail --noprofile --chroot=/tmp/chroot --tmpfs=/home/netblue/.config\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "ls ~/.config | wc -l\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "0" +if { $chroot == "chroot" } { + send -- "touch /tmp/chroot/home/netblue/.config/firejail-test-file\r" + sleep 1 + send -- "firejail --noprofile --chroot=/tmp/chroot --tmpfs=/home/netblue/.config\r" + expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "ls ~/.config | wc -l\r" + expect { + timeout {puts "TESTING ERROR 5\n";exit} + "0" + } + after 100 + send -- "exit\r" + sleep 1 } -after 100 -send -- "exit\r" -sleep 1 puts "\nall done\n" -- cgit v1.2.3-70-g09d2