Mercurial > hg > openttd
changeset 16939:840350103fac draft
(svn r21674) -Fix: for Mac OS X %p seems to add "x0", so filter that out for the regression test comparison
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 31 Dec 2010 12:13:16 +0000 |
parents | 14732cc61eb3 |
children | 7b463ae0722d |
files | bin/ai/regression/run.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/ai/regression/run.sh +++ b/bin/ai/regression/run.sh @@ -25,7 +25,7 @@ if [ -n "$gdb" ]; then $gdb ./openttd -x -c ai/regression/regression.cfg $params -g ai/regression/regression.sav else - ./openttd -x -c ai/regression/regression.cfg $params -g ai/regression/regression.sav -d ai=2 2>&1 | awk '{ gsub("0x(\\(nil\\)|0+)", "0x00000000", $0); gsub("^dbg: \\[ai\\]", "", $0); gsub("^ ", "ERROR: ", $0); gsub("ERROR: \\[1\\] ", "", $0); gsub("\\[P\\] ", "", $0); print $0; }' > tmp.regression + ./openttd -x -c ai/regression/regression.cfg $params -g ai/regression/regression.sav -d ai=2 2>&1 | awk '{ gsub("0x(\\(nil\\)|0+)(x0)?", "0x00000000", $0); gsub("^dbg: \\[ai\\]", "", $0); gsub("^ ", "ERROR: ", $0); gsub("ERROR: \\[1\\] ", "", $0); gsub("\\[P\\] ", "", $0); print $0; }' > tmp.regression fi if [ -z "$gdb" ]; then