From 6fc9dd8f99d6da9a5dc2a1ed25d35a00eabda977 Mon Sep 17 00:00:00 2001 From: Tamio Vesa Nakajima Date: Sat, 2 Jun 2018 20:44:07 +0100 Subject: [PATCH] On branch master Your branch is up-to-date with 'origin/master'. changed run to be non-parallel by default Changes to be committed: modified: src/run --- src/run | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/run b/src/run index 306e7df..a283a7d 100755 --- a/src/run +++ b/src/run @@ -47,17 +47,17 @@ fi # ARGUMENT PARSING ############################# -run_in_parallel=true +run_in_parallel=false # default values for used sources and used tests srcs=() tests=() -while getopts "hs:t:n" opt; do +while getopts "hs:t:p" opt; do case $opt in h) - echo "Usage: ./run -s [source] -t [test] -n [[if non-parallelism is desired]]" >&2 + echo "Usage: ./run -s [source] -t [test] -p [[if parallelism is desired]]" >&2 exit 0 ;; s) @@ -70,7 +70,7 @@ while getopts "hs:t:n" opt; do tests+=("$problemname-$x") done ;; - n) + p) run_in_parallel=false ;; *) @@ -139,7 +139,9 @@ for src in "${srcs[@]}" ; do fi done - wait + if [ "$run_in_parallel" == "true" ] ; then + wait + fi # Clear "Doing test ..." echo -en "\\r \\r" >&2