[unpackfs] Add test with too-small destination FS

main
Adriaan de Groot 6 years ago
parent 2a6bf50621
commit d87badbf45

@ -7,9 +7,21 @@ mkdir /tmp/unpackfs-test-run-rootdir3
# For test 7
mkdir /tmp/unpackfs-test-run-rootdir3/realdest
# For test 9
mkdir /tmp/unpackfs-test-run-rootdir3/smalldest
if test 0 = $( id -u ) ; then
mount -t tmpfs -o size=32M tmpfs /tmp/unpackfs-test-run-rootdir3/smalldest
dd if=/dev/zero of=/tmp/unpackfs-test-run-rootdir3/smalldest/bogus.zero bs=1M count=1
fi
# Run tests
sh "$SRCDIR/../testpythonrun.sh" unpackfs
# Cleanup test 9
if test 0 = $( id -u ) ; then
umount /tmp/unpackfs-test-run-rootdir3/smalldest
fi
# Cleanup test 7
rm -rf /tmp/unpackfs-test-run-rootdir3/realdest

@ -0,0 +1,3 @@
# This test uses a small destination FS, to make rsync fail
---
rootMountPoint: /tmp/unpackfs-test-run-rootdir3/

@ -0,0 +1,6 @@
# This test uses a small destination FS, to make rsync fail
---
unpack:
- source: .
sourcefs: ext4
destination: smalldest
Loading…
Cancel
Save