basic_all_hwfeature_combinations.sh: use $njobs to limit parallel tasks
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 10 Apr 2018 19:14:39 +0000 (22:14 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 10 Apr 2018 19:14:39 +0000 (22:14 +0300)
* tests/basic_all_hwfeature_combinations.sh: Use $njobs to limit
parallel tasks instead of fixed number "8".
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
tests/basic_all_hwfeature_combinations.sh

index 8ec97bf..1387190 100755 (executable)
@@ -68,7 +68,7 @@ done | sort | (
   while read opts; do
     currn=$nbasic
     curr_jobs=($(jobs -p))
-    while [ "${#curr_jobs[@]}" -ge "8" ]; do
+    while [ "${#curr_jobs[@]}" -ge "$njobs" ]; do
       # Wait for one job to complete
       wait ${retcodes[$nwait]}
       retval=$?