Skip to contentSkip to conversation

master - tests: do not skip test when delay is missing

PATCH Zdenek Kabelac 1 participant 1 message Nov 9, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ab4773671b1738abb4fb6c1504fcdd953760d80b
Commit:        ab4773671b1738abb4fb6c1504fcdd953760d80b
Parent:        e4c9b390ca9cb1cb847c714f9b08558e9a405ea5
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 9 12:14:42 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Nov 9 12:21:17 2015 +0100

tests: do not skip test when delay is missing

Rather then skipping whole test - just do not use it.

Failing tests that have required delay need to deal with reality and shell either check for HAVE_DM_DELAY and skip portion of test or using should when needed.

---
 test/lib/aux.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/aux.sh +1 -1
index 3f99357..2c66f29 100644
@@ -668,7 +668,7 @@ common_dev_() {
 # i.e.  delay_dev "$dev1" 0 200 256:
 delay_dev() {
 	if test ! -f HAVE_DM_DELAY ; then
-		target_at_least dm-delay 1 1 0 || skip
+		target_at_least dm-delay 1 1 0 || return 0
 	fi
 	touch HAVE_DM_DELAY
 	common_dev_ delay "$@"