From 2a79971004d4fb14b4483d7a87eca6eae4b8dd72 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 28 Mar 2014 10:37:33 +0100 Subject: [PATCH] tests: check pvchange changes uuid --- test/shell/pvchange-usage.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/test/shell/pvchange-usage.sh b/test/shell/pvchange-usage.sh index e25230cb2..a6a03fade 100644 --- a/test/shell/pvchange-usage.sh +++ b/test/shell/pvchange-usage.sh @@ -46,12 +46,20 @@ pvcreate --metadatacopies 0 "$dev1" pvcreate --metadatacopies 2 "$dev2" vgcreate $vg1 "$dev1" "$dev2" -pvchange -u "$dev1" -pvchange -u "$dev2" -UUID=$(get pv_field "$dev1" uuid) -pvchange -u --all # Checking for different UUID after pvchange -test "$UUID" != "$(get pv_field "$dev1" uuid)" || die "UUID has not changed!" +UUID1=$(get pv_field "$dev1" uuid) +pvchange -u "$dev1" +test "$UUID1" != "$(get pv_field "$dev1" uuid)" || die "UUID has not changed!" + +UUID2=$(get pv_field "$dev2" uuid) +pvchange -u "$dev2" +test "$UUID2" != "$(get pv_field "$dev2" uuid)" || die "UUID has not changed!" + +UUID1=$(get pv_field "$dev1" uuid) +UUID2=$(get pv_field "$dev2" uuid) +pvchange -u --all +test "$UUID1" != "$(get pv_field "$dev1" uuid)" || die "UUID has not changed!" +test "$UUID2" != "$(get pv_field "$dev2" uuid)" || die "UUID has not changed!" check pvlv_counts $vg1 2 0 0 # '-a' needs more params