1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

test: Adjust previous commit

Change have_single_core to  have_multi_core and go back to || logic in related test scripts.
This commit is contained in:
Heinz Mauelshagen 2017-04-21 01:21:24 +02:00
parent 18bf954801
commit a004cceed2
3 changed files with 4 additions and 5 deletions

View File

@ -1490,9 +1490,9 @@ have_readline() {
echo version | lvm &>/dev/null echo version | lvm &>/dev/null
} }
have_single_core() { have_multi_core() {
which nproc &>/dev/null || return 0 which nproc &>/dev/null || return 0
[ $(nproc) -eq 1 ] && return 1 [ $(nproc) -ne 1 ]
} }
dmsetup_wrapped() { dmsetup_wrapped() {

View File

@ -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 # Temporarily skip reshape tests on single-core CPUs until there's a fix for
# https://bugzilla.redhat.com/1443999 - AGK 2017/04/20 # https://bugzilla.redhat.com/1443999 - AGK 2017/04/20
aux have_single_core && skip aux have_multi_core || skip
aux prepare_vg 5 aux prepare_vg 5
# #

View File

@ -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 # Temporarily skip reshape tests on single-core CPUs until there's a fix for
# https://bugzilla.redhat.com/1443999 - AGK 2017/04/20 # https://bugzilla.redhat.com/1443999 - AGK 2017/04/20
aux have_single_core && skip aux have_multi_core || skip
aux prepare_vg 5 aux prepare_vg 5