1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-05 18:45:01 +01:00

tests: add a test for mount --shared and --live

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #405
Approved by: rhatdan
This commit is contained in:
Giuseppe Scrivano
2016-06-03 15:04:04 +02:00
committed by Atomic Bot
parent b011cc2233
commit e6cc1db8a0

View File

@@ -49,6 +49,19 @@ ${ATOMIC} mount ${INAME} --live ${MNT_WORK}/image
if [ "$?" -eq "0" ]; then
exit 1
fi
cleanup_mount () {
${ATOMIC} unmount ${MNT_WORK}/container
cleanup_container
}
trap cleanup_container_mount EXIT
${ATOMIC} unmount ${MNT_WORK}/container
${ATOMIC} mount ${id} --live ${MNT_WORK}/container
${ATOMIC} unmount ${MNT_WORK}/container
${ATOMIC} mount ${id} --shared ${MNT_WORK}/container
set -e
cleanup_mount () {