[lvm-devel] master - tests: use portable df output
Zdenek Kabelac
zkabelac at sourceware.org
Wed Sep 20 13:35:24 UTC 2017
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d9f9ce126856245541a66492f35422ab060a837e
Commit: d9f9ce126856245541a66492f35422ab060a837e
Parent: a15b7961468682496f9b51d9a07223e3dd6eba3f
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Wed Sep 20 15:34:02 2017 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Wed Sep 20 15:34:02 2017 +0200
tests: use portable df output
For awk parsing more 'predictable' format of output line is needed.
---
test/lib/inittest.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh
index 7b0bc13..a33748d 100644
--- a/test/lib/inittest.sh
+++ b/test/lib/inittest.sh
@@ -125,7 +125,7 @@ fi
echo "$TESTNAME" >TESTNAME
# Require 50M of free space in testdir
-test $(df -k . | 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)"
echo "Kernel is $(uname -a)"
More information about the lvm-devel
mailing list