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/2.5.exp | 54 ++++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'test/features/2.5.exp') diff --git a/test/features/2.5.exp b/test/features/2.5.exp index e189f145b..44c9b5949 100755 --- a/test/features/2.5.exp +++ b/test/features/2.5.exp @@ -75,33 +75,35 @@ if { $overlay == "overlay" } { # # C # -send -- "firejail --noprofile --chroot=/tmp/chroot --interface=eth0.7\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "/sbin/ifconfig\r" -expect { - timeout {puts "TESTING ERROR 5.4\n";exit} - "eth0.7" -} -expect { - timeout {puts "TESTING ERROR 5.5n";exit} - "Link" -} -expect { - timeout {puts "TESTING ERROR 5.6\n";exit} - "10.10.207.10" -} -expect { - timeout {puts "TESTING ERROR 5.7\n";exit} - "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" +if { $chroot == "chroot" } { + send -- "firejail --noprofile --chroot=/tmp/chroot --interface=eth0.7\r" + expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "/sbin/ifconfig\r" + expect { + timeout {puts "TESTING ERROR 5.4\n";exit} + "eth0.7" + } + expect { + timeout {puts "TESTING ERROR 5.5n";exit} + "Link" + } + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "10.10.207.10" + } + expect { + timeout {puts "TESTING ERROR 5.7\n";exit} + "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" + } + after 100 + send -- "exit\r" + sleep 1 } -after 100 -send -- "exit\r" -sleep 1 puts "\nall done\n" -- cgit v1.2.3-70-g09d2