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/1.2.exp | 79 ++++++++++++++++++++++++++------------------------- 1 file changed, 41 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 399e9948b..d487537e4 100755 --- a/test/features/1.2.exp +++ b/test/features/1.2.exp @@ -6,6 +6,7 @@ set timeout 10 spawn $env(SHELL) match_max 100000 +set overlay [lindex $argv 0] # # N @@ -54,45 +55,47 @@ sleep 1 # # O # -send -- "firejail --noprofile --overlay\r" -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "cat /proc/mounts | grep proc\r" -expect { - timeout {puts "TESTING ERROR 3.1\n";exit} - "proc /proc proc" +if { $overlay == "overlay" } { + send -- "firejail --noprofile --overlay\r" + expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Child process initialized" + } + sleep 1 + + send -- "cat /proc/mounts | grep proc\r" + expect { + timeout {puts "TESTING ERROR 3.1\n";exit} + "proc /proc proc" + } + expect { + timeout {puts "TESTING ERROR 3.2\n";exit} + "proc /proc proc" + } + expect { + timeout {puts "TESTING ERROR 3.3\n";exit} + "proc /proc/sys proc" + } + expect { + timeout {puts "TESTING ERROR 3.4\n";exit} + "proc /proc/sysrq-trigger proc" + } + expect { + timeout {puts "TESTING ERROR 3.5\n";exit} + "proc /proc/sys/kernel/hotplug" + } + expect { + timeout {puts "TESTING ERROR 3.6\n";exit} + "proc /proc/irq proc" + } + expect { + timeout {puts "TESTING ERROR 3.7\n";exit} + "proc /proc/bus proc" + } + after 100 + send -- "exit\r" + sleep 1 } -expect { - timeout {puts "TESTING ERROR 3.2\n";exit} - "proc /proc proc" -} -expect { - timeout {puts "TESTING ERROR 3.3\n";exit} - "proc /proc/sys proc" -} -expect { - timeout {puts "TESTING ERROR 3.4\n";exit} - "proc /proc/sysrq-trigger proc" -} -expect { - timeout {puts "TESTING ERROR 3.5\n";exit} - "proc /proc/sys/kernel/hotplug" -} -expect { - timeout {puts "TESTING ERROR 3.6\n";exit} - "proc /proc/irq proc" -} -expect { - timeout {puts "TESTING ERROR 3.7\n";exit} - "proc /proc/bus proc" -} -after 100 -send -- "exit\r" -sleep 1 # # C -- cgit v1.2.3-54-g00ecf