From 4d638f132445224a9b3804ca838f9438702a06d2 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Fri, 25 May 2018 19:08:11 +0200 Subject: tests: there are two files (including postexec) --- test/filters/seccomp-run-files.exp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/filters') diff --git a/test/filters/seccomp-run-files.exp b/test/filters/seccomp-run-files.exp index a72b9aef7..7c436b664 100755 --- a/test/filters/seccomp-run-files.exp +++ b/test/filters/seccomp-run-files.exp @@ -21,7 +21,7 @@ expect { "/run/firejail/mnt/seccomp.protocol seccomp filter" } after 100 -send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" +send -- "ls -l /run/firejail/mnt | grep -c seccomp\r" expect { timeout {puts "TESTING ERROR 3\n";exit} "4" @@ -38,10 +38,10 @@ expect { "/run/firejail/mnt/seccomp.protocol seccomp filter" } after 100 -send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" +send -- "ls -l /run/firejail/mnt | grep -c seccomp\r" expect { timeout {puts "TESTING ERROR 8\n";exit} - "1" + "2" } send -- "exit\r" sleep 1 @@ -61,7 +61,7 @@ expect { "monitoring" } after 100 -send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" +send -- "ls -l /run/firejail/mnt | grep -c seccomp\r" expect { timeout {puts "TESTING ERROR 13\n";exit} "3" @@ -87,7 +87,7 @@ expect { "/run/firejail/mnt/seccomp.protocol seccomp filter" } after 100 -send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" +send -- "ls -l /run/firejail/mnt | grep -c seccomp\r" expect { timeout {puts "TESTING ERROR 18\n";exit} "5" -- cgit v1.2.3-54-g00ecf