Merge pull request #129 from nalind/rotest

Fixups for read-only store tests
This commit is contained in:
Daniel J Walsh 2017-10-18 13:14:57 -04:00 committed by GitHub
commit 04ad0b8270
1 changed files with 5 additions and 2 deletions

View File

@ -58,13 +58,16 @@ load helpers
[ "$output" != "" ]
image=${output%% *}
# We no longer need to use the read-only root as a writeable location, so shut it down.
storage --graph ${TESTDIR}/ro-root --run ${TESTDIR}/ro-runroot shutdown
# Create a third layer based on the second one.
run storage --storage-opt ${STORAGE_DRIVER}.imagestore=${TESTDIR}/ro-root --debug=false create-layer "$midlayer"
[ "$status" -eq 0 ]
[ "$output" != "" ]
upperlayer="$output"
# Mount this layer.
run storage --debug=false mount $upperlayer
run storage --storage-opt ${STORAGE_DRIVER}.imagestore=${TESTDIR}/ro-root --debug=false mount $upperlayer
[ "$status" -eq 0 ]
[ "$output" != "" ]
uppermount="$output"
@ -82,7 +85,7 @@ load helpers
[ "$output" != "" ]
container="$output"
# Mount this container.
run storage --debug=false mount $container
run storage --storage-opt ${STORAGE_DRIVER}.imagestore=${TESTDIR}/ro-root --debug=false mount $container
[ "$status" -eq 0 ]
[ "$output" != "" ]
containermount="$output"