summaryrefslogtreecommitdiff
path: root/test/shell
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2022-01-13 14:52:54 -0600
committerDavid Teigland <teigland@redhat.com>2022-01-14 15:53:13 -0600
commitbb477d63e336a10e5959962a9f26a028ea9e55eb (patch)
treee62f2eac69db8b8ec7ecd197f0fd1387d2c87bbc /test/shell
parenta5c37afdca97d6565ea02bc4bc7d52f360823cd3 (diff)
downloadlvm2-bb477d63e336a10e5959962a9f26a028ea9e55eb.tar.gz
lvmdevices check: error exit if update is needed
. error exit means that lvmdevices --update would make a change. . remove check of PART field from --check because it isn't used. . unlink searched_devnames file to ensure check|update will search
Diffstat (limited to 'test/shell')
-rw-r--r--test/shell/devicesfile-realdevs.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/shell/devicesfile-realdevs.sh b/test/shell/devicesfile-realdevs.sh
index 8d4aa3e67..23d4bedb4 100644
--- a/test/shell/devicesfile-realdevs.sh
+++ b/test/shell/devicesfile-realdevs.sh
@@ -423,7 +423,7 @@ sed "s/$pvid1/badpvid/" "$DF.orig" |tee $DF
not grep $pvid1 $DF
grep $did1 $DF
-lvmdevices --check 2>&1|tee out
+not lvmdevices --check 2>&1|tee out
grep $dev1 out
grep badpvid out
grep $pvid1 out
@@ -493,7 +493,7 @@ rm $DF
d1=$(basename $dev1)
d3=$(basename $dev3)
sed "s/$d1/$d3/" "$DF.orig" |tee $DF
-lvmdevices --check 2>&1 |tee out
+not lvmdevices --check 2>&1 |tee out
grep $dev1 out
lvmdevices --update
@@ -515,7 +515,7 @@ sed "s/$d1/tmp/" "$DF.orig" |tee ${DF}_1
sed "s/$d2/$d1/" "${DF}_1" |tee ${DF}_2
sed "s/tmp/$d2/" "${DF}_2" |tee $DF
rm ${DF}_1 ${DF}_2
-lvmdevices --check 2>&1 |tee out
+not lvmdevices --check 2>&1 |tee out
grep $dev1 out
grep $dev2 out
@@ -536,7 +536,7 @@ rm $DF
d1=$(basename $dev1)
d3=$(basename $dev3)
sed "s/$d1/$d3/" "$DF.orig" |tee $DF
-lvmdevices --check 2>&1 |tee out
+not lvmdevices --check 2>&1 |tee out
grep $dev1 out
pvs -o+uuid,deviceid | grep $vg |tee out