From 72c6df3af5848f5551414f1749bd7fab86b28a60 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 23 Aug 2023 11:55:02 -0300 Subject: tests: properly fix fs/kmsg test It was broken likely due to `private-dev` being added to default.profile on commit 307dad542 ("adding private-tmp and private-dev to default.profile", 2023-08-20). So ignore `private-dev` in the test and make sure to run the tests when default.profile changes. This amends commit 75cefd5b1 ("tests: fix error when /dev/kmsg is missing", 2023-08-21). --- test/fs/kmsg.exp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/fs') diff --git a/test/fs/kmsg.exp b/test/fs/kmsg.exp index 1e647ab8d..deab8fcf5 100755 --- a/test/fs/kmsg.exp +++ b/test/fs/kmsg.exp @@ -7,7 +7,7 @@ set timeout 10 spawn $env(SHELL) match_max 100000 -send -- "firejail\r" +send -- "firejail --ignore=private-dev\r" expect { timeout {puts "TESTING ERROR 1\n";exit} -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" @@ -17,7 +17,6 @@ sleep 1 send -- "cat /dev/kmsg\r" expect { timeout {puts "TESTING ERROR 2\n";exit} - "No such file or directory" # FIXME: Needed in CI "Permission denied" } after 100 -- cgit v1.2.3-70-g09d2