From b343ac3130b5028fa61154393425e161e748c62f Mon Sep 17 00:00:00 2001 From: Felix Rabe Date: Tue, 3 Nov 2009 15:17:06 +0100 Subject: [PATCH] Small changes to the testing framework --- convert_newlines.py | 1 - run_tests.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/convert_newlines.py b/convert_newlines.py index e85b604..f151094 100644 --- a/convert_newlines.py +++ b/convert_newlines.py @@ -4,7 +4,6 @@ import os test_dir = "tests" for fn in sorted(os.listdir(test_dir)): - print fn full_fn = os.path.join(test_dir, fn) s = file(full_fn, "rb").read() file(full_fn, "wb").write(s.replace("\r\n", "\n")) diff --git a/run_tests.sh b/run_tests.sh index 50ec032..b260d4b 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -13,7 +13,7 @@ cmd=( "$PY" convert_newlines.py ) echo "${cmd[@]}" "${cmd[@]}" -for f in tests/*.in.xml +for f in tests/${1}*.in.xml do base=${f%.in.xml} cmd=( "$PY" xmlmerge.py -i "$f" -o "$base.out.xml" -r "$base.ref.xml" -d ) -- 2.11.4.GIT