diff --git a/Makefile b/Makefile index 1b7b512..31f5e3a 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ build: @echo Nothing to do: filter-repo is a script which needs no compilation. test: - cd t && time ./run_coverage + time t/run_coverage # fixup_locale might matter once we actually have translations, but right now # we don't. It might not even matter then, because python has a fallback podir. diff --git a/t/run_coverage b/t/run_coverage index f72cdd5..2164cc9 100755 --- a/t/run_coverage +++ b/t/run_coverage @@ -16,12 +16,8 @@ EOF export COVERAGE_PROCESS_START=$tmpdir/.coveragerc export PYTHONPATH=$tmpdir: -# We pretend filenames are unicode for two reasons: (1) because it exercises -# more code, and (2) this setting will detect accidental use of unicode strings -# for file/directory names when it should always be bytestrings. -export PRETEND_UNICODE_ARGS=1 -ls t939*.sh | xargs -n 1 bash +$orig_dir/run_tests cd $tmpdir coverage3 combine diff --git a/t/run_tests b/t/run_tests new file mode 100755 index 0000000..320188a --- /dev/null +++ b/t/run_tests @@ -0,0 +1,10 @@ +#!/bin/bash + +cd $(dirname $0) + +# We pretend filenames are unicode for two reasons: (1) because it exercises +# more code, and (2) this setting will detect accidental use of unicode strings +# for file/directory names when it should always be bytestrings. +export PRETEND_UNICODE_ARGS=1 + +ls t939*.sh | xargs -n 1 bash