Fail rather than crashing if there is no test output.
Change-Id: Iff1c66f5b789137271729cdd11f5f8d8d68199a7
diff --git a/test/hftest/hftest.py b/test/hftest/hftest.py
index 2a2a07e..74db312 100755
--- a/test/hftest/hftest.py
+++ b/test/hftest/hftest.py
@@ -132,7 +132,7 @@
sponge_log.write(out)
sponge_log.write("\r\n\r\n")
hftest_out = hftest_lines(out)
- if hftest_out[-1] == "FINISHED" and not any(
+ if len(hftest_out) > 0 and hftest_out[-1] == "FINISHED" and not any(
l.startswith('Failure:') for l in hftest_out):
print(" PASS")
else: