diff options
author | rubidium <rubidium@openttd.org> | 2010-12-31 12:13:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-31 12:13:16 +0000 |
commit | 1d47e0a4d297601c683c3a7627a484580f238806 (patch) | |
tree | 6ea106a3aba0dbc05cb22acd9cc91fd86e6a3d0c /bin/ai/regression | |
parent | 4a0ce4bb14e2a69eb9231296460a1898d294c9be (diff) | |
download | openttd-1d47e0a4d297601c683c3a7627a484580f238806.tar.xz |
(svn r21674) -Fix: for Mac OS X %p seems to add "x0", so filter that out for the regression test comparison
Diffstat (limited to 'bin/ai/regression')
-rwxr-xr-x | bin/ai/regression/run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ai/regression/run.sh b/bin/ai/regression/run.sh index 800dc618b..2e86f3b87 100755 --- a/bin/ai/regression/run.sh +++ b/bin/ai/regression/run.sh @@ -25,7 +25,7 @@ fi 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 |