From 52898f467a95bb31b54ca90c3de968dc3624af38 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 20 Jan 2023 20:18:32 -0500 Subject: small test fixes --- test/filters/seccomp-run-files.exp | 8 ++++---- test/fs/private-cache.exp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/filters/seccomp-run-files.exp b/test/filters/seccomp-run-files.exp index 95258ad4a..959eb743e 100755 --- a/test/filters/seccomp-run-files.exp +++ b/test/filters/seccomp-run-files.exp @@ -38,7 +38,7 @@ expect { "Installing /run/firejail/mnt/seccomp/seccomp.protocol seccomp filter" } after 100 -send -- "ls -l /run/firejail/mnt/seccomp | grep -c seccomp\r" +send -- "wc -l /run/firejail/mnt/seccomp/seccomp.list\r" expect { timeout {puts "TESTING ERROR 8\n";exit} "3" @@ -61,7 +61,7 @@ expect { "monitoring" } after 100 -send -- "ls -l /run/firejail/mnt | grep -c seccomp\r" +send -- "wc -l /run/firejail/mnt/seccomp/seccomp.list\r" expect { timeout {puts "TESTING ERROR 13\n";exit} "4" @@ -87,10 +87,10 @@ expect { "/run/firejail/mnt/seccomp/seccomp.protocol seccomp filter" } after 100 -send -- "ls -l /run/firejail/mnt/seccomp | grep -c seccomp\r" +send -- "wc -l /run/firejail/mnt/seccomp/seccomp.list\r" expect { timeout {puts "TESTING ERROR 18\n";exit} - "10" + "7" } send -- "exit\r" sleep 1 diff --git a/test/fs/private-cache.exp b/test/fs/private-cache.exp index f21d799b4..2764c5608 100755 --- a/test/fs/private-cache.exp +++ b/test/fs/private-cache.exp @@ -8,10 +8,10 @@ spawn $env(SHELL) match_max 100000 send -- "mkdir --mode=700 ~/.cache\r" -after 100 +after 500 send -- "touch ~/.cache/abcdefg\r" -after 100 +after 500 if { ! [file exists ~/.cache/abcdefg] } { puts "TESTING ERROR 0\n" -- cgit v1.2.3-54-g00ecf