Skip to contentSkip to conversation

master - test: Adjust previous commit

PATCH Heinz Mauelshagen 1 participant 1 message Apr 20, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a004cceed2ce050514fe9b4bd66fc948a2b72bc2
Commit:        a004cceed2ce050514fe9b4bd66fc948a2b72bc2
Parent:        18bf954801e0ea3aff4b85e9511b1bbf03a07c2d
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Fri Apr 21 01:21:24 2017 +0200
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Fri Apr 21 01:21:24 2017 +0200

test: Adjust previous commit

Change have_single_core to have_multi_core and go back to || logic in related test scripts.

---
 test/lib/aux.sh                                    |    4 ++--
 .../lvconvert-raid-reshape-linear_to_striped.sh    |    3 +--
 .../lvconvert-raid-reshape-striped_to_linear.sh    |    2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)
test/lib/aux.sh +2 -2
index b05c59d..6217c4c 100644
@@ -1490,9 +1490,9 @@ have_readline() {
 	echo version | lvm &>/dev/null
 }
 
-have_single_core() {
+have_multi_core() {
 	which nproc &>/dev/null || return 0
-	[ $(nproc) -eq 1 ] && return 1
+	[ $(nproc) -ne 1 ]
 }
 
 dmsetup_wrapped() {
test/shell/lvconvert-raid-reshape-linear_to_striped.sh +1 -2
index 879c33c..042cb33 100644
@@ -19,8 +19,7 @@ aux have_raid 1 10 1 || skip
 
 # Temporarily skip reshape tests on single-core CPUs until there's a fix for
 # https://bugzilla.redhat.com/1443999 - AGK 2017/04/20
-aux have_single_core && skip
-
+aux have_multi_core || skip
 aux prepare_vg 5
 
 #
test/shell/lvconvert-raid-reshape-striped_to_linear.sh +1 -1
index 4c12dd7..4051862 100644
@@ -19,7 +19,7 @@ aux have_raid 1 10 1 || skip
 
 # Temporarily skip reshape tests on single-core CPUs until there's a fix for
 # https://bugzilla.redhat.com/1443999 - AGK 2017/04/20
-aux have_single_core && skip
+aux have_multi_core || skip
 
 aux prepare_vg 5