Skip to content

Commit

Permalink
On branch master
Browse files Browse the repository at this point in the history
Your branch is up-to-date with 'origin/master'.
changed run to be non-parallel by default
Changes to be committed:
modified:   src/run
  • Loading branch information
Tamio Vesa Nakajima authored and Tamio Vesa Nakajima committed Jun 2, 2018
1 parent 3fc8d91 commit 6fc9dd8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/run
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -70,7 +70,7 @@ while getopts "hs:t:n" opt; do
tests+=("$problemname-$x")
done
;;
n)
p)
run_in_parallel=false
;;
*)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6fc9dd8

Please sign in to comment.