Mercurial > hg
comparison tests/run-tests @ 802:69db1e34378b
Allow tests for not yet fixed bugs to fail without generating error diff.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 29 Jul 2005 15:59:10 +0100 |
parents | c28f9feb7c2e |
children | 3d47e7fc33a3 |
comparison
equal
deleted
inserted
replaced
801:1f9ec150a476 | 802:69db1e34378b |
---|---|
101 fail=1 | 101 fail=1 |
102 elif [ -r "$OUTOK" ]; then | 102 elif [ -r "$OUTOK" ]; then |
103 if diff -u "$OUTOK" "$OUT" > /dev/null; then | 103 if diff -u "$OUTOK" "$OUT" > /dev/null; then |
104 : no differences | 104 : no differences |
105 else | 105 else |
106 cp "$OUT" "$ERR" | 106 if FIXME="`grep 'FIXME' \"$TESTDIR/$1\"`"; then |
107 echo | 107 echo |
108 echo "$1 output changed:" | 108 echo "$1 failed, but this is ignored because of:" |
109 diff -u "$OUTOK" "$ERR" || true | 109 echo "$FIXME" |
110 fail=1 | 110 else |
111 cp "$OUT" "$ERR" | |
112 echo | |
113 echo "$1 output changed:" | |
114 diff -u "$OUTOK" "$ERR" || true | |
115 fail=1 | |
116 fi | |
111 fi | 117 fi |
112 fi | 118 fi |
113 | 119 |
114 cd "$TESTDIR" | 120 cd "$TESTDIR" |
115 rm -f "$HGTMP/$1.out" | 121 rm -f "$HGTMP/$1.out" |