aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-01-07 16:41:53 -0800
committerRob Landley <rob@landley.net>2019-01-07 19:26:24 -0600
commitbfbdd4a2db0c65a917a88746a93ec5ae9d378063 (patch)
tree5580cc6d359090a8bf66ff46612b30d1c65367fa /tests
parente95778682ac4d2f71781ac39a83f9346861b3675 (diff)
downloadtoybox-bfbdd4a2db0c65a917a88746a93ec5ae9d378063.tar.gz
Use `return` rather than `continue` to make bash 4.4 happy.
Otherwise we get this error: continue: only meaningful in a 'for', 'while', or 'until' loop
Diffstat (limited to 'tests')
-rwxr-xr-xtests/chattr.test2
-rwxr-xr-xtests/chgrp.test2
-rwxr-xr-xtests/chown.test2
-rwxr-xr-xtests/groupadd.test2
-rwxr-xr-xtests/groupdel.test2
-rwxr-xr-xtests/hostname.test2
-rwxr-xr-xtests/ifconfig.test2
-rwxr-xr-xtests/losetup.test2
-rwxr-xr-xtests/sh.test2
-rwxr-xr-xtests/useradd.test2
10 files changed, 10 insertions, 10 deletions
diff --git a/tests/chattr.test b/tests/chattr.test
index 067014df..04005a7a 100755
--- a/tests/chattr.test
+++ b/tests/chattr.test
@@ -7,7 +7,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: chattr (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/chgrp.test b/tests/chgrp.test
index 16cd776a..65820361 100755
--- a/tests/chgrp.test
+++ b/tests/chgrp.test
@@ -5,7 +5,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: chgrp (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/chown.test b/tests/chown.test
index 95ad727a..56eed81e 100755
--- a/tests/chown.test
+++ b/tests/chown.test
@@ -5,7 +5,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: chown (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/groupadd.test b/tests/groupadd.test
index 6161ee2f..1ca018d1 100755
--- a/tests/groupadd.test
+++ b/tests/groupadd.test
@@ -7,7 +7,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: groupadd (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/groupdel.test b/tests/groupdel.test
index 94edcf90..0bd4d38a 100755
--- a/tests/groupdel.test
+++ b/tests/groupdel.test
@@ -8,7 +8,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: groupdel (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/hostname.test b/tests/hostname.test
index 80f94405..ba65a398 100755
--- a/tests/hostname.test
+++ b/tests/hostname.test
@@ -10,7 +10,7 @@ testing "get" "hostname" "$HOST\n" "" ""
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: groupdel (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/ifconfig.test b/tests/ifconfig.test
index d82cd4af..34b84b73 100755
--- a/tests/ifconfig.test
+++ b/tests/ifconfig.test
@@ -24,7 +24,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: ifconfig (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/losetup.test b/tests/losetup.test
index c9292503..f30a0fe2 100755
--- a/tests/losetup.test
+++ b/tests/losetup.test
@@ -5,7 +5,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: losetup (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/sh.test b/tests/sh.test
index 1d228dcf..875a0df8 100755
--- a/tests/sh.test
+++ b/tests/sh.test
@@ -7,7 +7,7 @@
if [ -z "$(which bash)" ]
then
echo "$SHOWSKIP: no bash alias"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi
diff --git a/tests/useradd.test b/tests/useradd.test
index d0b68ee6..1567f2f1 100755
--- a/tests/useradd.test
+++ b/tests/useradd.test
@@ -8,7 +8,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: useradd (not root)"
- continue 2>/dev/null
+ return 2>/dev/null
exit
fi