From c17b4a8709222e86edc3721ce571bdbebc06c86e Mon Sep 17 00:00:00 2001 From: Sertonix Date: Fri, 19 Apr 2024 15:47:08 +0200 Subject: [PATCH] tests: use stat -c instead of --format for compatibility eg. busybox stat only has -c and not --format Signed-off-by: Sertonix Signed-off-by: Simon McVittie --- tests/test-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-run.sh b/tests/test-run.sh index 8d063b5..2ed0e6f 100755 --- a/tests/test-run.sh +++ b/tests/test-run.sh @@ -109,7 +109,7 @@ assert_file_has_content json-status.json '"child-pid": [0-9]' assert_file_has_content_literal json-status.json '"exit-code": 42' ok "info and json-status fd" -DATA=$($RUN --proc /proc --unshare-all --info-fd 42 --json-status-fd 43 -- bash -c 'stat -L --format "%n %i" /proc/self/ns/*' 42>info.json 43>json-status.json 2>err.txt) +DATA=$($RUN --proc /proc --unshare-all --info-fd 42 --json-status-fd 43 -- bash -c 'stat -L -c "%n %i" /proc/self/ns/*' 42>info.json 43>json-status.json 2>err.txt) for NS in "ipc" "mnt" "net" "pid" "uts"; do