From f6867358e2fb50382b6ff3cbf717a1a733965338 Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Sun, 29 Dec 2019 12:32:28 +0000 Subject: [PATCH] test-switchroot.sh: Exclude /proc from file list Since we're not interested in any file inside /proc, exclude it from the file listing in our fake root thus avoiding failures when processes die during our execution and find(1) can't then look inside those directories. Signed-off-by: Alex Kiernan --- tests/test-switchroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-switchroot.sh b/tests/test-switchroot.sh index bc3ec38b..b05b11a4 100755 --- a/tests/test-switchroot.sh +++ b/tests/test-switchroot.sh @@ -56,7 +56,7 @@ find_in_env() { "$1" "$tmpdir" enter_fs "$tmpdir" ostree-prepare-root /sysroot - find / + find / \( -path /proc -o -path /sysroot/proc \) -prune -o -print touch /usr/usr_writable 2>/null \ && echo "/usr is writable" \ || echo "/usr is not writable"