From 8e69e38d5125a9b13e2fa2027e4d06c2f236d248 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 27 Jun 2023 21:52:40 +0200 Subject: [PATCH] test_linux.sh: Do not fail if called twice The script is set to exit on error, so mkdir failing because /tmp/cni-rootless already exists aborts the test run. Call 'mkdir -p' to avoid the spurious error. Signed-off-by: Phil Sutter --- test_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_linux.sh b/test_linux.sh index e2003f7a..90213956 100755 --- a/test_linux.sh +++ b/test_linux.sh @@ -39,5 +39,5 @@ for t in ${PKG}; do done # Run the pkg/ns tests as non root user -mkdir /tmp/cni-rootless +mkdir -p /tmp/cni-rootless (export XDG_RUNTIME_DIR=/tmp/cni-rootless; cd pkg/ns/; unshare -rmn go test)