From ecb1ed97be62f26e84d860f3b79244237947aab5 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Fri, 25 Oct 2013 00:15:34 +0200 Subject: Made the tests more tolerant for whitespace. --- tests/run_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/run_all.sh') diff --git a/tests/run_all.sh b/tests/run_all.sh index 486454b..5727afb 100755 --- a/tests/run_all.sh +++ b/tests/run_all.sh @@ -5,7 +5,7 @@ for t in test_*; do cd $t php ../test.php > have echo -ne "\e[1m$t\e[0m: " - if cmp -s want have; then + if sed 's/\s*//' < have | grep -v '^$' | cmp -s want; then echo "OK" rm *.transc.php else -- cgit v1.2.3-54-g00ecf