"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/overlay.bats" between
buildah-1.10.1.tar.gz and buildah-1.11.0.tar.gz

About: Buildah is a tool that facilitates building Open Container Initiative (OCI) container images.

overlay.bats  (buildah-1.10.1):overlay.bats  (buildah-1.11.0)
skipping to change at line 13 skipping to change at line 13
load helpers load helpers
@test "overlay specific level" { @test "overlay specific level" {
if test \! -e /usr/bin/fuse-overlays -a "$BUILDAH_ISOLATION" = "rootless"; th en if test \! -e /usr/bin/fuse-overlays -a "$BUILDAH_ISOLATION" = "rootless"; th en
skip "BUILDAH_ISOLATION = $BUILDAH_ISOLATION" and no /usr/bin/fuse-overlayfs present skip "BUILDAH_ISOLATION = $BUILDAH_ISOLATION" and no /usr/bin/fuse-overlayfs present
fi fi
image=alpine image=alpine
mkdir ${TESTDIR}/lower mkdir ${TESTDIR}/lower
touch ${TESTDIR}/lower/foo touch ${TESTDIR}/lower/foo
cid=$(buildah --debug=false from -v ${TESTDIR}/lower:/lower:O --quiet --signatur e-policy ${TESTSDIR}/policy.json $image) cid=$(buildah --log-level=error from -v ${TESTDIR}/lower:/lower:O --quiet --sign ature-policy ${TESTSDIR}/policy.json $image)
# This should succeed # This should succeed
run_buildah --debug=false run $cid ls /lower/foo run_buildah --log-level=error run $cid ls /lower/foo
# Create and remove content in the overlay directory, should succeed # Create and remove content in the overlay directory, should succeed
run_buildah --debug=false run $cid touch /lower/bar run_buildah --log-level=error run $cid touch /lower/bar
run_buildah --debug=false run $cid rm /lower/foo run_buildah --log-level=error run $cid rm /lower/foo
# This should fail, second runs of containers go back to original # This should fail, second runs of containers go back to original
run_buildah 1 --debug=false run $cid ls /lower/bar run_buildah 1 --log-level=error run $cid ls /lower/bar
# This should fail # This should fail
run ls ${TESTDIR}/lower/bar run ls ${TESTDIR}/lower/bar
[ "$status" -ne 0 ] [ "$status" -ne 0 ]
} }
 End of changes. 4 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)