Skip to content

Commit 7280f79

Browse files
committed
run-tests: Allow to run tests selectively via command line.
1 parent 4c31655 commit 7280f79

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tests/run-tests

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ numpassed=0
1010
numfailed=0
1111
namefailed=
1212

13-
for infile in basics/*.py io/*.py
13+
if [ $# -eq 0 ]
14+
then
15+
tests="basics/*.py io/*.py"
16+
else
17+
tests="$@"
18+
fi
19+
20+
for infile in $tests
1421
do
1522
basename=`basename $infile .py`
1623
outfile=${basename}.out

0 commit comments

Comments
 (0)