summaryrefslogtreecommitdiff
path: root/tests/run_all.sh
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-10-25 00:15:34 +0200
committerKevin Chabowski <kevin@kch42.de>2013-10-25 00:15:34 +0200
commitecb1ed97be62f26e84d860f3b79244237947aab5 (patch)
treefef13a609cfd5bf2a95d4cb402b2a9dd824cd453 /tests/run_all.sh
parentfce36cfcd183a6ca6d86d51b72cf41e43c349432 (diff)
downloadste-ecb1ed97be62f26e84d860f3b79244237947aab5.tar.gz
ste-ecb1ed97be62f26e84d860f3b79244237947aab5.tar.bz2
ste-ecb1ed97be62f26e84d860f3b79244237947aab5.zip
Made the tests more tolerant for whitespace.
Diffstat (limited to 'tests/run_all.sh')
-rwxr-xr-xtests/run_all.sh2
1 files changed, 1 insertions, 1 deletions
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