From b4fa2c2517fd313bb0000f7697274d2ab2498265 Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Fri, 31 Jul 2020 00:22:32 +0800 Subject: fix podman system df format error Signed-off-by: zhangguanzhang --- test/system/320-system-df.bats | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/system/320-system-df.bats b/test/system/320-system-df.bats index a96507448..217357b37 100644 --- a/test/system/320-system-df.bats +++ b/test/system/320-system-df.bats @@ -24,9 +24,10 @@ function teardown() { run_podman run -d -v /myvol2 --name c2 $IMAGE \ sh -c 'while ! test -e /stop; do sleep 0.1;done' - run_podman system df --format '{{ .Type }}:{{ .Total }}:{{ .Active }}--' - # FIXME: if/when #7149 gets fixed, split this into three tests (i.e. test "${lines[0]}", [1], [2] ) - is "$output" "Images:1:1--Containers:2:1--Local Volumes:2:1--" + run_podman system df --format '{{ .Type }}:{{ .Total }}:{{ .Active }}' + is "${lines[0]}" "Images:1:1" "system df : Images line" + is "${lines[1]}" "Containers:2:1" "system df : Containers line" + is "${lines[2]}" "Local Volumes:2:1" "system df : Volumes line" # Try -v. (Grrr. No way to specify individual formats) # -- cgit v1.2.3-54-g00ecf