summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorRuediger Meier2015-12-15 18:26:04 +0100
committerKarel Zak2016-01-05 12:21:56 +0100
commit81b3d7eda54edd74c0ab7b9a564ae6adb0d45839 (patch)
treeb32a2566ad54fe5de7f6b4ce1c42871da39acf63 /tests/run.sh
parenttests: always create sparse image files (diff)
downloadkernel-qcow2-util-linux-81b3d7eda54edd74c0ab7b9a564ae6adb0d45839.tar.gz
kernel-qcow2-util-linux-81b3d7eda54edd74c0ab7b9a564ae6adb0d45839.tar.xz
kernel-qcow2-util-linux-81b3d7eda54edd74c0ab7b9a564ae6adb0d45839.zip
tests: fix run.sh --parallel=1
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 4927a483a..dca9c6c54 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -65,11 +65,9 @@ while [ -n "$1" ]; do
;;
--parallel=*)
paraller_jobs="${1##--parallel=}"
- OPTS="$OPTS --parallel"
;;
--parallel)
paraller_jobs=$(num_cpus)
- OPTS="$OPTS --parallel"
;;
--exclude=*)
EXCLUDETESTS="${1##--exclude=}"
@@ -164,6 +162,7 @@ echo
if [ $paraller_jobs -gt 1 ]; then
echo " Executing the tests in parallel ($paraller_jobs jobs) "
echo
+ OPTS="$OPTS --parallel"
fi
count=0