Skip to contentSkip to conversation

master - tests: pvscan-autoactivate check for machine-id

PATCH David Teigland 1 participant 1 message Jun 6, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c315112a3b7d01e56cbd2ecb3d05f55d44a50e12
Commit:        c315112a3b7d01e56cbd2ecb3d05f55d44a50e12
Parent:        2b241eb1f666e93f47917f2495e900bf80c9d5ff
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Jun 6 15:32:42 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Thu Jun 6 15:32:42 2019 -0500

tests: pvscan-autoactivate check for machine-id

---
 test/shell/pvscan-autoactivate.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
test/shell/pvscan-autoactivate.sh +4 -0
index 362a4ff..d674dc5 100644
@@ -134,6 +134,8 @@ not ls "$RUNDIR/lvm/pvs_online/$PVID3"
 
 # pvscan cache ignores pv in a foreign vg
 
+if [ -e "/etc/machine-id" ]; then
+
 aux lvmconf "global/system_id_source = machineid"
 
 _clear_online_files
@@ -168,6 +170,8 @@ cat tmp
 grep $lv2 tmp
 check lv_field $vg2/$lv2 lv_active "" --foreign
 
+fi
+
 
 # Test the case where pvscan --cache -aay (with no devs)
 # gets the final PV to complete the VG, where that final PV