Skip to contentSkip to conversation

master - tests: bounds still more vars

PATCH Zdenek Kabelac 1 participant 1 message Jul 11, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0f2dccc60176dffcf98fdd69734e3e1309095aeb
Commit:        0f2dccc60176dffcf98fdd69734e3e1309095aeb
Parent:        ec9b845aaa6f155fc30951e7f479327402e287f0
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jul 12 01:37:29 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
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(-)
test/api/pytest.sh +1 -1
index e4e0994..ea53dbd 100644
@@ -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
test/shell/inconsistent-metadata.sh +1 -0
index 36d7038..358ffcb 100644
@@ -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