1
0
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:
Zdenek Kabelac 2018-03-14 11:21:56 +01:00
parent bed869a8a0
commit f6f8f0c7fd
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ echo "$TESTNAME" >TESTNAME
# Require 50M of free space in testdir # Require 50M of free space in testdir
test $(df -k -P . | awk '/\// {print $4}') -gt 51200 || 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)" echo "Kernel is $(uname -a)"
# Report SELinux mode # Report SELinux mode

View File

@ -241,7 +241,7 @@ skip() {
if test "$#" -eq 0; then if test "$#" -eq 0; then
stacktrace stacktrace
else else
echo "TEST SKIPPED:" "$@" echo -e "TEST SKIPPED:" "$@"
fi fi
touch SKIP_THIS_TEST touch SKIP_THIS_TEST
exit 200 exit 200