master - test: Adjust previous commit
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
@@ -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
@@ -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
@@ -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