return error status on test errors as well as failures
diff --git a/tests/oft b/tests/oft
index f25605d..2dc6289 100755
--- a/tests/oft
+++ b/tests/oft
@@ -571,5 +571,5 @@
         logging.info("Skipped " + str(testutils.skipped_test_count) + ts)
         print("Skipped " + str(testutils.skipped_test_count) + ts)
     logging.info("*** TEST RUN END  : " + time.asctime())
-    if result.failures:
+    if result.failures or result.errors:
         exit(1)