From 2acc910daf73c284965ca96bc70b4eb980c865cf Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 8 Nov 2018 10:49:44 -0500 Subject: profile parser testing --- test/profiles/profile_syntax2.exp | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'test/profiles/profile_syntax2.exp') diff --git a/test/profiles/profile_syntax2.exp b/test/profiles/profile_syntax2.exp index 4d621f3ec..da34b67e8 100755 --- a/test/profiles/profile_syntax2.exp +++ b/test/profiles/profile_syntax2.exp @@ -7,7 +7,7 @@ set timeout 10 spawn $env(SHELL) match_max 100000 -send -- "firejail --debug --profile=test2.profile\r" +send -- "firejail --profile=test2.profile\r" expect { timeout {puts "TESTING ERROR 0\n";exit} "Reading profile test2.profile" @@ -18,29 +18,8 @@ expect { } expect { timeout {puts "TESTING ERROR 2\n";exit} - "Mounting a new /home directory" + "cannot access profile file" } -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "Disable /bin/rmdir" {puts "Most Linux platforms\n"} - "Disable /usr/bin/rmdir" { puts "OpenSUSE platform\n"} -} -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Drop CAP_SYS_MODULE" -} -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "seccomp entries in /run/firejail/mnt/seccomp" -} -expect { - timeout {puts "TESTING ERROR 7\n";exit} - "jeq mount" -} -expect { - timeout {puts "TESTING ERROR 8\n";exit} - "Child process initialized" -} -send -- "exit\r" + after 100 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf