# HG changeset patch # User Thomas Arendsen Hein # Date 2005-07-29 20:34:41 # Node ID 3d47e7fc33a36debf0e8e5ad5cd235a919b8e1f1 # Parent 69db1e34378b5e62fed6f4223303b722f80c6e6f Use tabs instead of spaces where apropriate. diff --git a/tests/run-tests b/tests/run-tests --- a/tests/run-tests +++ b/tests/run-tests @@ -60,9 +60,9 @@ then rm tests/install.err mv "$INST/bin/hg" "$INST/bin/hg.real" ( - echo '#!/bin/sh' - echo 'echo "+ hg $@"' - echo 'exec hg.real "$@"' + echo '#!/bin/sh' + echo 'echo "+ hg $@"' + echo 'exec hg.real "$@"' ) > "$INST/bin/hg" chmod 755 "$INST/bin/hg" else @@ -87,7 +87,7 @@ run_one() { ERR="$TESTDIR/$1.err" if "$TESTDIR/$1" > "$OUT" 2>&1; then - : no error + : no error else echo "$1 failed with error code $?" fail=1 @@ -100,21 +100,21 @@ run_one() { cat "$ERR" fail=1 elif [ -r "$OUTOK" ]; then - if diff -u "$OUTOK" "$OUT" > /dev/null; then - : no differences - else - if FIXME="`grep 'FIXME' \"$TESTDIR/$1\"`"; then - echo - echo "$1 failed, but this is ignored because of:" - echo "$FIXME" - else - cp "$OUT" "$ERR" - echo - echo "$1 output changed:" - diff -u "$OUTOK" "$ERR" || true - fail=1 - fi - fi + if diff -u "$OUTOK" "$OUT" > /dev/null; then + : no differences + else + if FIXME="`grep 'FIXME' \"$TESTDIR/$1\"`"; then + echo + echo "$1 failed, but this is ignored because of:" + echo "$FIXME" + else + cp "$OUT" "$ERR" + echo + echo "$1 output changed:" + diff -u "$OUTOK" "$ERR" || true + fail=1 + fi + fi fi cd "$TESTDIR"