[lvm-devel] master - tests: bounds still more vars
Zdenek Kabelac
zkabelac at sourceware.org
Tue Jul 11 23:52:21 UTC 2017
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0f2dccc60176dffcf98fdd69734e3e1309095aeb
Commit: 0f2dccc60176dffcf98fdd69734e3e1309095aeb
Parent: ec9b845aaa6f155fc30951e7f479327402e287f0
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Wed Jul 12 01:37:29 2017 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Wed Jul 12 01:37:29 2017 +0200
tests: bounds still more vars
---
test/api/pytest.sh | 2 +-
test/shell/inconsistent-metadata.sh | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/test/api/pytest.sh b/test/api/pytest.sh
index e4e0994..ea53dbd 100644
--- a/test/api/pytest.sh
+++ b/test/api/pytest.sh
@@ -43,7 +43,7 @@ if [[ -n "$abs_top_builddir" ]]; then
fi
fi
- PYTHONPATH=$(dirname "${python_lib[*]}"):$PYTHONPATH
+ PYTHONPATH=$(dirname "${python_lib[*]}"):${PYTHONPATH-}
export PYTHONPATH
elif rpm -q lvm2-python-libs &>/dev/null; then
true
diff --git a/test/shell/inconsistent-metadata.sh b/test/shell/inconsistent-metadata.sh
index 36d7038..358ffcb 100644
--- a/test/shell/inconsistent-metadata.sh
+++ b/test/shell/inconsistent-metadata.sh
@@ -32,6 +32,7 @@ init() {
}
# vgscan fixes up metadata (needs --cache option for direct scan if lvmetad is used)
+cache=""
test -e LOCAL_LVMETAD && cache="--cache"
init
vgscan $cache 2>&1 | tee cmd.out
More information about the lvm-devel
mailing list