mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-18 20:33:14 +08:00
Set default for second argument for check script.
Otherwise, buildtests will be run with a second argument of "" if check is called with only one argument, which leads to infinitely many jobs.
This commit is contained in:
parent
02beaea2f8
commit
32f6242b60
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# mctestr : shorthand for make and ctest -R
|
# check : shorthand for make and ctest -R
|
||||||
|
|
||||||
if [ $# == 0 -o $# -ge 3 ]
|
if [ $# == 0 -o $# -ge 3 ]
|
||||||
then
|
then
|
||||||
@ -9,4 +9,4 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO when ctest 2.8 comes out, honor the jobs parameter
|
# TODO when ctest 2.8 comes out, honor the jobs parameter
|
||||||
./buildtests "$1" "$2" && ctest -R "$1"
|
./buildtests "$1" "${2:-1}" && ctest -R "$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user