Skip to contentSkip to conversation

master - test: Skip some reshape tests that hang on single core machines

PATCH Alasdair Kergon 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=c7fb0cb861104e99c11e8b4e031d981dab7891a1
Commit:        c7fb0cb861104e99c11e8b4e031d981dab7891a1
Parent:        83cdba75bde734027984af9642f161c5693a5458
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Thu Apr 20 20:05:07 2017 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Thu Apr 20 20:05:07 2017 +0100

test: Skip some reshape tests that hang on single core machines

Skip hanging raid reshape tests until https://bugzilla.redhat.com/1443999
is fixed

---
 test/lib/aux.sh                                    |    5 +++++
 .../lvconvert-raid-reshape-linear_to_striped.sh    |    4 ++++
 .../lvconvert-raid-reshape-striped_to_linear.sh    |    4 ++++
 3 files changed, 13 insertions(+), 0 deletions(-)
test/lib/aux.sh +5 -0
index 5303adc..b05c59d 100644
@@ -1490,6 +1490,11 @@ have_readline() {
 	echo version | lvm &>/dev/null
 }
 
+have_single_core() {
+	which nproc &>/dev/null || return 0
+	[ $(nproc) -eq 1 ] && return 1
+}
+
 dmsetup_wrapped() {
 	udev_wait
 	dmsetup "$@"
test/shell/lvconvert-raid-reshape-linear_to_striped.sh +4 -0
index 29a293e..13769ec 100644
@@ -17,6 +17,10 @@ SKIP_WITH_LVMPOLLD=1
 which mkfs.ext4 || skip
 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 prepare_vg 5
 
 #
test/shell/lvconvert-raid-reshape-striped_to_linear.sh +4 -0
index 357763e..8f53a42 100644
@@ -17,6 +17,10 @@ SKIP_WITH_LVMPOLLD=1
 which mkfs.ext4 || skip
 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 prepare_vg 5
 
 #