Skip to content

Commit

Permalink
provide a way for tests to request that they be skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Oct 30, 2006
1 parent 9c76663 commit d7c720a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ run_tests () {
find $* -name test.hal | sort > $TMPDIR/alltests

while read testname; do
NUM=$(($NUM+1))
testdir=$(dirname $testname)
if [ -e $testdir/skip ]; then
if ! [ -x $testdir/skip ] || ! $testdir/skip; then
echo "Skipping test: $testdir" 1>&2
continue
fi
fi
NUM=$(($NUM+1))
echo "Running test: $testdir" 1>&2
run_without_overruns $testname
exitcode=$?
Expand Down

0 comments on commit d7c720a

Please sign in to comment.