Skip to content

Commit

Permalink
Allow specifying $threads directly when validating
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Mar 21, 2010
1 parent c9959e4 commit 15f7bc3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions validate
Expand Up @@ -45,10 +45,14 @@ do
shift
done

if [ "$CPUS" = "" ]; then
threads=2
if [ "$THREADS" = "" ]; then
if [ "$CPUS" = "" ]; then
threads=2
else
threads=$(($CPUS + 1)) # `expr $CPUS + 1`
fi
else
threads=$(($CPUS + 1)) # `expr $CPUS + 1`
threads="$THREADS"
fi

if [ $testsuite_only -eq 0 ]; then
Expand Down

0 comments on commit 15f7bc3

Please sign in to comment.