mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-07 05:58:00 +03:00
tests: fix tests variable
Actually check $r instead or 'r' for test failure.
This commit is contained in:
parent
38917ee51c
commit
270e526734
@ -197,8 +197,8 @@ ln -s "$DM_DEV_DIR/mapper/${PREFIX}abc" "$DM_DEV_DIR/${PREFIX}xyz"
|
||||
aux dmsetup status "$DM_DEV_DIR/${PREFIX}xyz" || r=1
|
||||
rm -f "$DM_DEV_DIR/${PREFIX}xyz"
|
||||
remove_dm_dev auto "abc"
|
||||
if [ r = 1 ]; then
|
||||
exit 1
|
||||
if [ "$r" = 1 ]; then
|
||||
return "$r"
|
||||
fi
|
||||
|
||||
### ALL WHITELISTED CHARACTERS ###
|
||||
|
Loading…
x
Reference in New Issue
Block a user