Fix run-test on host.
Change-Id: I44ebb4cdc2f5966be51a063e3c7256ab3016c404
diff --git a/test/run-all-tests b/test/run-all-tests
index 18ffa17..3176f02 100755
--- a/test/run-all-tests
+++ b/test/run-all-tests
@@ -103,15 +103,19 @@
# wait for all the tests, collecting the failures
failure_count=0
+succeeded_count=0
failed_test_names=""
for pid in ${test_pids[@]}; do
wait $pid
if [ "$?" != "0" ]; then
let failure_count+=1
- failed_test_names="$failed_test_names $test_names[$pid]"
+ failed_test_names="$failed_test_names ${test_names[$pid]}[pid=$pid]"
+ else
+ let succeeded_count+=1
fi
done
+echo "succeeded tests: $succeeded_count"
echo "failed tests: $failure_count"
for i in $failed_test_names; do