diff --git a/test/whiteout.bats b/test/whiteout.bats index 6f816df2..9cee2e91 100644 --- a/test/whiteout.bats +++ b/test/whiteout.bats @@ -26,10 +26,12 @@ EOF echo "skipping $f" continue } - bsdtar -tvf oci/blobs/sha256/$f | grep '.wh.sensors.d' && { - echo "should not have a sensors.d whiteout!" - exit 1 - } + bsdtar -tvf oci/blobs/sha256/$f + run "bsdtar -tvf oci/blobs/sha256/$f | grep '.wh.sensors.d'" + if [ "$status" -eq 0 ]; then + echo "should not have a sensors.d whiteout!"; + exit 1; + fi done }