run-tests: Allow to run tests selectively via command line.
This commit is contained in:
parent
4c316552c1
commit
7280f79088
@ -10,7 +10,14 @@ numpassed=0
|
||||
numfailed=0
|
||||
namefailed=
|
||||
|
||||
for infile in basics/*.py io/*.py
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
tests="basics/*.py io/*.py"
|
||||
else
|
||||
tests="$@"
|
||||
fi
|
||||
|
||||
for infile in $tests
|
||||
do
|
||||
basename=`basename $infile .py`
|
||||
outfile=${basename}.out
|
||||
|
Loading…
Reference in New Issue
Block a user