Skip to content

Commit

Permalink
Merge pull request #3792 from lsm5/fix-bash-syntax
Browse files Browse the repository at this point in the history
helpers.bash: Use correct syntax
  • Loading branch information
openshift-merge-robot committed Feb 21, 2022
2 parents 96becab + eedab4f commit b2897f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ function skip_if_rootless() {
##################################
function skip_if_rootless_and_cgroupv1() {
if test "$BUILDAH_ISOLATION" = "rootless"; then
if !is_cgroupsv2; then
skip "${1:-test does not work when \$BUILDAH_ISOLATION = rootless} and not cgroupv2"
fi
if ! is_cgroupsv2; then
skip "${1:-test does not work when \$BUILDAH_ISOLATION = rootless} and not cgroupv2"
fi
fi
}

Expand Down Expand Up @@ -471,7 +471,7 @@ function skip_if_cgroupsv2() {
# skip_if_cgroupsv1 # Some tests don't work with cgroupsv1
#######################
function skip_if_cgroupsv1() {
if !is_cgroupsv2; then
if ! is_cgroupsv2; then
skip "${1:-test does not work with cgroups v1}"
fi
}
Expand Down

0 comments on commit b2897f0

Please sign in to comment.