master - tests: skip test when not enough space
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f6f8f0c7fda823b1d7261472a6d724118ed19007 Commit: f6f8f0c7fda823b1d7261472a6d724118ed19007 Parent: bed869a8a0e66bc4a760b6f56b0d199fc226a179 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Mar 14 11:21:56 2018 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Mar 15 11:01:04 2018 +0100
tests: skip test when not enough space
Make the test skipped instead of failing when there was not enough space.
--- test/lib/inittest.sh | 2 +- test/lib/utils.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
test/lib/inittest.sh +1 -1
@@ -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
test/lib/utils.sh +1 -1
@@ -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