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.4.exp | 116 +++++++++++++++++++++++++------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) (limited to 'test/features/2.4.exp') diff --git a/test/features/2.4.exp b/test/features/2.4.exp index 424d4fead..3291c046c 100755 --- a/test/features/2.4.exp +++ b/test/features/2.4.exp @@ -170,65 +170,65 @@ if { $overlay == "overlay" } { # # C # -send -- "firejail --noprofile --net=br0 --chroot=/tmp/chroot\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" -} -expect { - timeout {puts "TESTING ERROR 5.5\n";exit} - "Link" -} -expect { - timeout {puts "TESTING ERROR 5.6\n";exit} - "10.10.20" -} -expect { - timeout {puts "TESTING ERROR 5.7\n";exit} - "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" -} -after 100 - -send -- "exit\r" -sleep 1 - -send -- "firejail --noprofile --net=br0 --ip=10.10.20.4 --chroot=/tmp/chroot\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" -} -expect { - timeout {puts "TESTING ERROR 5.5\n";exit} - "Link" -} -expect { - timeout {puts "TESTING ERROR 5.6\n";exit} - "10.10.20.4" -} -expect { - timeout {puts "TESTING ERROR 5.7\n";exit} - "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" +if { $chroot == "chroot" } { + send -- "firejail --noprofile --net=br0 --chroot=/tmp/chroot\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" + } + expect { + timeout {puts "TESTING ERROR 5.5\n";exit} + "Link" + } + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "10.10.20" + } + expect { + timeout {puts "TESTING ERROR 5.7\n";exit} + "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" + } + after 100 + + send -- "exit\r" + sleep 1 + + send -- "firejail --noprofile --net=br0 --ip=10.10.20.4 --chroot=/tmp/chroot\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" + } + expect { + timeout {puts "TESTING ERROR 5.5\n";exit} + "Link" + } + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "10.10.20.4" + } + 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-54-g00ecf