[unpackfs] Add test with too-small destination FS
This commit is contained in:
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
|
||||
|
||||
|
3
src/modules/unpackfs/tests/9.global
Normal file
3
src/modules/unpackfs/tests/9.global
Normal file
@ -0,0 +1,3 @@
|
||||
# This test uses a small destination FS, to make rsync fail
|
||||
---
|
||||
rootMountPoint: /tmp/unpackfs-test-run-rootdir3/
|
6
src/modules/unpackfs/tests/9.job
Normal file
6
src/modules/unpackfs/tests/9.job
Normal file
@ -0,0 +1,6 @@
|
||||
# This test uses a small destination FS, to make rsync fail
|
||||
---
|
||||
unpack:
|
||||
- source: .
|
||||
sourcefs: ext4
|
||||
destination: smalldest
|
Loading…
Reference in New Issue
Block a user