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 +++++----- test/utils/dns-print.exp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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" diff --git a/test/utils/dns-print.exp b/test/utils/dns-print.exp index a0fbaa12f..bed7df58d 100755 --- a/test/utils/dns-print.exp +++ b/test/utils/dns-print.exp @@ -21,7 +21,7 @@ expect { "nameserver 1.2.3.4" } expect { - timeout {puts "TESTING ERROR 1\n";exit} + timeout {puts "TESTING ERROR 2\n";exit} "nameserver ::2" } after 100 -- cgit v1.2.3-54-g00ecf