97347a
From eedab4fd872c3be8ab15af767897f92c78a71fde Mon Sep 17 00:00:00 2001
97347a
From: Lokesh Mandvekar <lsm5@fedoraproject.org>
97347a
Date: Mon, 21 Feb 2022 14:58:40 -0500
97347a
Subject: [PATCH] helpers.bash: Use correct syntax
97347a
97347a
Fixes gating test failure:
97347a
```
97347a
 /usr/share/buildah/test/system/./helpers.bash: line 474: !is_cgroupsv2: command not found
97347a
 ```
97347a
97347a
Co-authored-by: Yiqiao Pu <ypu@redhat.com>
97347a
97347a
I'm just the committer.
97347a
97347a
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
97347a
---
97347a
 tests/helpers.bash | 8 ++++----
97347a
 1 file changed, 4 insertions(+), 4 deletions(-)
97347a
97347a
diff --git a/tests/helpers.bash b/tests/helpers.bash
97347a
index bd2794c974..3e72108bec 100644
97347a
--- a/tests/helpers.bash
97347a
+++ b/tests/helpers.bash
97347a
@@ -433,9 +433,9 @@ function skip_if_rootless() {
97347a
 ##################################
97347a
 function skip_if_rootless_and_cgroupv1() {
97347a
     if test "$BUILDAH_ISOLATION" = "rootless"; then
97347a
-	if !is_cgroupsv2; then
97347a
-		skip "${1:-test does not work when \$BUILDAH_ISOLATION = rootless} and not cgroupv2"
97347a
-	fi
97347a
+        if ! is_cgroupsv2; then
97347a
+            skip "${1:-test does not work when \$BUILDAH_ISOLATION = rootless} and not cgroupv2"
97347a
+        fi
97347a
     fi
97347a
 }
97347a
 
97347a
@@ -471,7 +471,7 @@ function skip_if_cgroupsv2() {
97347a
 #  skip_if_cgroupsv1  #  Some tests don't work with cgroupsv1
97347a
 #######################
97347a
 function skip_if_cgroupsv1() {
97347a
-    if !is_cgroupsv2; then
97347a
+    if ! is_cgroupsv2; then
97347a
         skip "${1:-test does not work with cgroups v1}"
97347a
     fi
97347a
 }