mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: skip test when not enough space
Make the test skipped instead of failing when there was not enough space.
This commit is contained in:
parent
bed869a8a0
commit
f6f8f0c7fd
@ -127,7 +127,7 @@ echo "$TESTNAME" >TESTNAME
|
||||
|
||||
# Require 50M of free space in testdir
|
||||
test $(df -k -P . | awk '/\// {print $4}') -gt 51200 ||
|
||||
die "Testing requires more then 50M of free space in directory $TESTDIR!\n$(df -H)"
|
||||
skip "Testing requires more then 50M of free space in directory $TESTDIR!\n$(df -H | sed -e 's,^,## DF: ,')"
|
||||
|
||||
echo "Kernel is $(uname -a)"
|
||||
# Report SELinux mode
|
||||
|
@ -241,7 +241,7 @@ skip() {
|
||||
if test "$#" -eq 0; then
|
||||
stacktrace
|
||||
else
|
||||
echo "TEST SKIPPED:" "$@"
|
||||
echo -e "TEST SKIPPED:" "$@"
|
||||
fi
|
||||
touch SKIP_THIS_TEST
|
||||
exit 200
|
||||
|
Loading…
Reference in New Issue
Block a user