]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
test: Correct operation when tests pass
authorSimon Glass <sjg@chromium.org>
Mon, 27 Nov 2017 03:25:55 +0000 (20:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 28 Nov 2017 04:05:22 +0000 (23:05 -0500)
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>
test/run

index caee4f83f2c147fd5194659fc89ae97c0dc4d44e..56160977a3f0c56a3e289b36a9d870acc9b8b4e2 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -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