diff --git a/test/whiteout.bats b/test/whiteout.bats index 6f816df2..1dc573e4 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' && { + bsdtar -tvf oci/blobs/sha256/$f + run bsdtar -tvf oci/blobs/sha256/$f | grep '.wh.sensors.d' + if [ "$status" -ne 0 ]; echo "should not have a sensors.d whiteout!" exit 1 - } + fi done }