From 01f450f5313e9107f5c7caacbeae0a2f8a749449 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 1 Apr 2018 13:52:13 -0400 Subject: testing login as nobody --- test/ssh/sftp.exp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/ssh/sftp.exp') diff --git a/test/ssh/sftp.exp b/test/ssh/sftp.exp index 72c858f05..3b0124ec7 100755 --- a/test/ssh/sftp.exp +++ b/test/ssh/sftp.exp @@ -21,17 +21,17 @@ send -- "echo 12345 > testfile\r" after 100 send -- "sftp firejail-test@0\r" expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 1\n";exit} "Connected to 0" } expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 2\n";exit} "sftp>" } after 100 send -- "put testfile\r" expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 3\n";exit} "100%" } after 100 @@ -41,14 +41,14 @@ sleep 1 send -- "ssh firejail-test@0\r" expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 4\n";exit} "Child process initialized" {puts "OK\n"} "an existing sandbox was detected" {puts "OK\n"} } sleep 1 send -- "cat testfile\r" expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 5\n";exit} "12345" } after 100 @@ -59,17 +59,17 @@ send -- "rm testfile\r" after 100 send -- "sftp firejail-test@0\r" expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 6\n";exit} "Connected to 0" } expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 7\n";exit} "sftp>" } after 100 send -- "get testfile\r" expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 8\n";exit} "100%" } after 100 @@ -77,7 +77,7 @@ send -- "exit\r" sleep 1 send -- "cat testfile\r" expect { - timeout {puts "TESTING ERROR 0\n";exit} + timeout {puts "TESTING ERROR 9\n";exit} "12345" } after 100 -- cgit v1.2.3-54-g00ecf