[U-Boot] [PATCH v2 1/7] test: Correct operation when tests pass

Simon Glass sjg at chromium.org
Mon Nov 27 03:25:55 UTC 2017


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

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2:
- Add new patch to correct operation when tests pass

 test/run | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/run b/test/run
index caee4f83f2c..56160977a3f 100755
--- 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
 
-- 
2.15.0.417.g466bffb3ac-goog



More information about the U-Boot mailing list