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.2.exp | 78 ++++++++++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 38 deletions(-) (limited to 'test/features/1.2.exp') diff --git a/test/features/1.2.exp b/test/features/1.2.exp index d487537e4..0e62895dd 100755 --- a/test/features/1.2.exp +++ b/test/features/1.2.exp @@ -100,45 +100,47 @@ 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 -- "cat /proc/mounts | grep proc\r" -expect { - timeout {puts "TESTING ERROR 5.1\n";exit} - "proc /proc proc" -} -expect { - timeout {puts "TESTING ERROR 5.2\n";exit} - "proc /proc proc" -} -expect { - timeout {puts "TESTING ERROR 5.3\n";exit} - "proc /proc/sys proc" -} -expect { - timeout {puts "TESTING ERROR 5.4\n";exit} - "proc /proc/sysrq-trigger proc" -} -expect { - timeout {puts "TESTING ERROR 5.5\n";exit} - "proc /proc/sys/kernel/hotplug" -} -expect { - timeout {puts "TESTING ERROR 5.6\n";exit} - "proc /proc/irq proc" -} -expect { - timeout {puts "TESTING ERROR 5.7\n";exit} - "proc /proc/bus proc" +if { $chroot == "chroot" } { + send -- "firejail --noprofile --chroot=/tmp/chroot\r" + expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "cat /proc/mounts | grep proc\r" + expect { + timeout {puts "TESTING ERROR 5.1\n";exit} + "proc /proc proc" + } + expect { + timeout {puts "TESTING ERROR 5.2\n";exit} + "proc /proc proc" + } + expect { + timeout {puts "TESTING ERROR 5.3\n";exit} + "proc /proc/sys proc" + } + expect { + timeout {puts "TESTING ERROR 5.4\n";exit} + "proc /proc/sysrq-trigger proc" + } + expect { + timeout {puts "TESTING ERROR 5.5\n";exit} + "proc /proc/sys/kernel/hotplug" + } + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "proc /proc/irq proc" + } + expect { + timeout {puts "TESTING ERROR 5.7\n";exit} + "proc /proc/bus proc" + } + after 100 + send -- "exit\r" + sleep 1 } -after 100 -send -- "exit\r" -sleep 1 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf