test: Correct operation when tests pass

When tests pass an error message is printed because of a variable that is
not initialised. Fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2017-11-26 20:25:55 -07:00 committed by Tom Rini
parent 7fef459096
commit 73a01d90c0

View File

@ -3,9 +3,10 @@
run_test() {
$@
[ $? -ne 0 ] && result=$((result+1))
echo "result $result"
}
result=0
# Run all tests that the standard sandbox build can support
run_test ./test/py/test.py --bd sandbox --build