From 7373a5bb938cd06c8d040c4412d6bf1940f5af38 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Fri, 14 Aug 2020 10:54:57 +0200 Subject: tests: fix false-positive match on modules The systemd service file ./systemd/system/sysinit.target.wants/systemd-modules-load.service can exist which will lead to a match for "modules", though we are only looking for the modules directory. --- test/fs/private-lib.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/fs') diff --git a/test/fs/private-lib.exp b/test/fs/private-lib.exp index ed04de1f9..3d7e68097 100755 --- a/test/fs/private-lib.exp +++ b/test/fs/private-lib.exp @@ -30,8 +30,8 @@ after 100 send -- "cd /lib; find .\r" expect { timeout {puts "TESTING ERROR 5\n";exit} - "modules" {puts "TESTING ERROR 6\n";exit} - "firmware" {puts "TESTING ERROR 7\n";exit} + "/modules" {puts "TESTING ERROR 6\n";exit} + "/firmware" {puts "TESTING ERROR 7\n";exit} "libc.so" } after 100 -- cgit v1.2.3-54-g00ecf