[lvm-devel] dev-mornfall-lvmcache - test: do not break test if there is no .cache

Petr Rockai mornfall at fedoraproject.org
Wed Jun 5 12:02:28 UTC 2013

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=23775c8fe8cdd82dee33cd397eeab5a84181380b
Commit:        23775c8fe8cdd82dee33cd397eeab5a84181380b
Parent:        67fc56f5ca1e05f78cedc5f729745e176447c6b2
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Tue Apr 23 14:36:27 2013 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Tue Apr 23 14:36:27 2013 +0200

test: do not break test if there is no .cache

When running test on read /dev, we obtain devices from udev,
and there is no .cache file, so do not stop test if the file
is missing.
 test/shell/vgimportclone.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/shell/vgimportclone.sh b/test/shell/vgimportclone.sh
index 0a476ec..60c833a 100644
--- a/test/shell/vgimportclone.sh
+++ b/test/shell/vgimportclone.sh
@@ -31,7 +31,7 @@ vgimportclone --basevgname $vg2 "$dev2"
 # concerned, can only live on a single device. With the last pvscan, we told it
 # that PV from $dev1 now lives on $dev2, but in fact this is not true anymore,
 # since we wrote a different PV over $dev2.
-rm $TESTDIR/etc/.cache
+rm -f $TESTDIR/etc/.cache
 aux notify_lvmetad "$dev2"
 aux notify_lvmetad "$dev1"

More information about the lvm-devel mailing list