dev-mornfall-lvmcache - test: do not break test if there is no .cache
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=23775c8fe8cdd82dee33cd397eeab5a84181380b Commit: 23775c8fe8cdd82dee33cd397eeab5a84181380b Parent: 67fc56f5ca1e05f78cedc5f729745e176447c6b2 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Apr 23 14:36:27 2013 +0200 Committer: Zdenek Kabelac <[email protected]> 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(-)
test/shell/vgimportclone.sh +1 -1
@@ -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"