From c4f10394ab24327b1f303cba493723def9ab99ba Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 28 Apr 2016 15:22:09 -0400 Subject: fixed make test-envirnment for running under /tmp --- test/environment/zsh.exp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'test/environment/zsh.exp') diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp index e625c4793..7ab7faa76 100755 --- a/test/environment/zsh.exp +++ b/test/environment/zsh.exp @@ -4,7 +4,6 @@ # License GPL v2 set timeout 10 -#cd /home spawn $env(SHELL) match_max 100000 @@ -15,15 +14,12 @@ expect { } sleep 1 -send -- "ls -al;pwd\r" +send -- "find /home\r" expect { timeout {puts "TESTING ERROR 1\n";exit} ".zshrc" } -expect { - timeout {puts "TESTING ERROR 1.1\n";exit} - "home" -} + send -- "env | grep SHELL;pwd\r" expect { timeout {puts "TESTING ERROR 2\n";exit} @@ -33,12 +29,8 @@ expect { timeout {puts "TESTING ERROR 2.1\n";exit} "/usr/bin/zsh" } -expect { - timeout {puts "TESTING ERROR 2.2\n";exit} - "home" -} send -- "exit\r" sleep 1 -puts "\n" +puts "\nall done\n" -- cgit v1.2.3-54-g00ecf