summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorSami Kerola2018-05-04 21:38:03 +0200
committerKarel Zak2018-05-28 13:36:38 +0200
commit4520caa11e52999e40a208d4926952a28169a5f1 (patch)
tree76c04581df8fc509e432bf512a709d4e9904d2f7 /tests/run.sh
parentlib/strutils: fix strnlen() fallback (diff)
downloadkernel-qcow2-util-linux-4520caa11e52999e40a208d4926952a28169a5f1.tar.gz
kernel-qcow2-util-linux-4520caa11e52999e40a208d4926952a28169a5f1.tar.xz
kernel-qcow2-util-linux-4520caa11e52999e40a208d4926952a28169a5f1.zip
tests: move stderr redirection out from test expression
Fix shellcheck error. if ! [ "$paraller_jobs" -ge 0 2>/dev/null ]; then ^-- SC1009: The mentioned parser error was in this if expression. ^-- SC1073: Couldn't parse this test expression. ^-- SC1072: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh
index f40c9f801..3db20dcd8 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -82,7 +82,7 @@ while [ -n "$1" ]; do
;;
--parallel=*)
paraller_jobs="${1##--parallel=}"
- if ! [ "$paraller_jobs" -ge 0 2>/dev/null ]; then
+ if ! [ "$paraller_jobs" -ge 0 ] 2>/dev/null; then
echo "invalid argument '$paraller_jobs' for --parallel="
exit 1
fi