comparison tests/test-status @ 6202:0ab0da2215d7

test-status: Make assert function definition sh compatible.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 02 Mar 2008 20:54:00 +0100
parents 305d4450036a
children 991f7518c3f3
comparison
equal deleted inserted replaced
6201:305d4450036a 6202:0ab0da2215d7
60 hg copy modified copied 60 hg copy modified copied
61 61
62 # Run status with 2 different flags. 62 # Run status with 2 different flags.
63 # Check if result is the same or different. 63 # Check if result is the same or different.
64 # If result is not as expected, raise error 64 # If result is not as expected, raise error
65 function assert { 65 assert() {
66 hg status $1 > ../a 66 hg status $1 > ../a
67 hg status $2 > ../b 67 hg status $2 > ../b
68 out=`diff ../a ../b` 68 out=`diff ../a ../b`
69 if [ $? -ne 0 ]; then 69 if [ $? -ne 0 ]; then
70 out=1 70 out=1