diff options
author | David Teigland <teigland@redhat.com> | 2018-07-10 14:19:46 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2018-07-10 14:19:46 -0500 |
commit | edf3f86184a380994e383b9884364e702e4ac647 (patch) | |
tree | 0f2e38a4d51c53f69cb11b8e7799cd09fb0a3b57 | |
parent | 06439a256217b5d37ef33833051fc322a58b4859 (diff) | |
download | lvm2-edf3f86184a380994e383b9884364e702e4ac647.tar.gz |
tests: fix mkdir pvs_online
-rw-r--r-- | test/shell/pvscan-autoactivate.sh | 2 | ||||
-rw-r--r-- | test/shell/pvscan-nomda-bg.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/shell/pvscan-autoactivate.sh b/test/shell/pvscan-autoactivate.sh index af6f2b2d4..85a08cff7 100644 --- a/test/shell/pvscan-autoactivate.sh +++ b/test/shell/pvscan-autoactivate.sh @@ -19,6 +19,8 @@ aux prepare_pvs 2 vgcreate $vg1 "$dev1" "$dev2" lvcreate -n $lv1 -l 4 -a n $vg1 +mkdir /run/lvm/pvs_online || true + # the first pvscan scans all devs rm /run/lvm/pvs_online/* diff --git a/test/shell/pvscan-nomda-bg.sh b/test/shell/pvscan-nomda-bg.sh index f8ecc080a..d73f3daa2 100644 --- a/test/shell/pvscan-nomda-bg.sh +++ b/test/shell/pvscan-nomda-bg.sh @@ -26,7 +26,7 @@ check inactive $vg1 foo # create a file in pvs_online to disable the pvscan init # case which scans everything when the first dev appears. -mkdir /run/lvm/pvs_online/ +mkdir /run/lvm/pvs_online || true touch /run/lvm/pvs_online/foo pvscan --cache --background "$dev2" -aay |