Convert exceptions from code errors (well, any unexpected exception)
into a TestError. This allows the test to be reported as failed.
I think because tests are run in separate processes, its harder to
catch these sorts of errors.
if args and not args[0].quiet:
print("===> {}: Sub test #{}: SKIPPED : {}".format(kwargs["test_name"], kwargs["test_num"], ue))
kwargs["count"]["skipped"] += 1
+ except Exception as err:
+ raise TestError("Internal runtime error: {}".format(err))
else:
if result:
kwargs["count"]["success"] += 1