From 686bc51e38b0718651e82818871b0bf1451c8b21 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 23 Dec 2015 12:38:13 -0500 Subject: 0.9.36 testing --- test/features/2.5.exp | 55 +++++++++++++++++++++++++++------------------------ 1 file changed, 29 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 4ba1f5a28..e189f145b 100755 --- a/test/features/2.5.exp +++ b/test/features/2.5.exp @@ -6,6 +6,7 @@ set timeout 10 spawn $env(SHELL) match_max 100000 +set overlay [lindex $argv 0] # # N @@ -41,33 +42,35 @@ sleep 1 # # O # -send -- "firejail --noprofile --overlay --interface=eth0.6\r" -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "/sbin/ifconfig\r" -expect { - timeout {puts "TESTING ERROR 3.4\n";exit} - "eth0.6" -} -expect { - timeout {puts "TESTING ERROR 3.5n";exit} - "Link" -} -expect { - timeout {puts "TESTING ERROR 3.6\n";exit} - "10.10.206.10" +if { $overlay == "overlay" } { + send -- "firejail --noprofile --overlay --interface=eth0.6\r" + expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "/sbin/ifconfig\r" + expect { + timeout {puts "TESTING ERROR 3.4\n";exit} + "eth0.6" + } + expect { + timeout {puts "TESTING ERROR 3.5n";exit} + "Link" + } + expect { + timeout {puts "TESTING ERROR 3.6\n";exit} + "10.10.206.10" + } + expect { + timeout {puts "TESTING ERROR 3.7\n";exit} + "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" + } + after 100 + send -- "exit\r" + sleep 1 } -expect { - timeout {puts "TESTING ERROR 3.7\n";exit} - "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" -} -after 100 -send -- "exit\r" -sleep 1 # # C -- cgit v1.2.3-70-g09d2