From 80cc5fa809ebb3f213852312dea15cded00cc069 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 20 Nov 2016 16:05:45 -0500 Subject: chroot testing --- test/chroot/fs_chroot.exp | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'test/chroot/fs_chroot.exp') diff --git a/test/chroot/fs_chroot.exp b/test/chroot/fs_chroot.exp index aeb5669e1..295ff8ff9 100755 --- a/test/chroot/fs_chroot.exp +++ b/test/chroot/fs_chroot.exp @@ -20,19 +20,14 @@ expect { sleep 1 send -- "bash\r" sleep 1 -send -- "ls /; pwd\r" +send -- "ls /\r" expect { timeout {puts "TESTING ERROR 0.2\n";exit} "this-is-my-chroot" } -expect { - timeout {puts "TESTING ERROR 0.3\n";exit} - "home" -} - +after 100 - -send -- "ps aux; pwd\r" +send -- "ps aux\r" expect { timeout {puts "TESTING ERROR 1\n";exit} "/bin/bash" @@ -45,23 +40,14 @@ expect { timeout {puts "TESTING ERROR 3\n";exit} "ps aux" } -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "home" -} -sleep 1 +after 100 - -send -- "ps aux |wc -l; pwd\r" +send -- "ps aux | wc -l; pwd\r" expect { timeout {puts "TESTING ERROR 5\n";exit} "6" } -expect { - timeout {puts "TESTING ERROR 6\n";exit} - "home" -} -sleep 1 +after 100 puts "all done\n" -- cgit v1.2.3-54-g00ecf