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.1.exp | 63 +++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 30 deletions(-) (limited to 'test/features/2.1.exp') diff --git a/test/features/2.1.exp b/test/features/2.1.exp index a2ae321ce..5f188988b 100755 --- a/test/features/2.1.exp +++ b/test/features/2.1.exp @@ -6,6 +6,7 @@ set timeout 10 spawn $env(SHELL) match_max 100000 +set overlay [lindex $argv 0] # # N @@ -46,37 +47,39 @@ sleep 1 # # O # -send -- "firejail --noprofile --hostname=bingo --overlay\r" -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "hostname\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "bingo" -} -after 100 -send -- "cat /etc/hostname\r" -expect { - timeout {puts "TESTING ERROR 3.0\n";exit} - "bingo" -} -after 100 -send -- "getent hosts bingo\r" -expect { - timeout {puts "TESTING ERROR 3.1\n";exit} - "127.0.0.1" +if { $overlay == "overlay" } { + send -- "firejail --noprofile --hostname=bingo --overlay\r" + expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "hostname\r" + expect { + timeout {puts "TESTING ERROR 3\n";exit} + "bingo" + } + after 100 + send -- "cat /etc/hostname\r" + expect { + timeout {puts "TESTING ERROR 3.0\n";exit} + "bingo" + } + after 100 + send -- "getent hosts bingo\r" + expect { + timeout {puts "TESTING ERROR 3.1\n";exit} + "127.0.0.1" + } + expect { + timeout {puts "TESTING ERROR 3.2\n";exit} + "bingo" + } + after 100 + send -- "exit\r" + sleep 1 } -expect { - timeout {puts "TESTING ERROR 3.2\n";exit} - "bingo" -} -after 100 -send -- "exit\r" -sleep 1 # # C -- cgit v1.2.3-70-g09d2