Skip to content

Commit

Permalink
tests: use stat -c instead of --format for compatibility
Browse files Browse the repository at this point in the history
eg. busybox stat only has -c and not --format

Signed-off-by: Sertonix <sertonix@posteo.net>
Signed-off-by: Simon McVittie <smcv@collabora.com>
  • Loading branch information
sertonix authored and smcv committed Sep 30, 2024
1 parent 67400e1 commit c17b4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c17b4a8

Please # to comment.