Commit 1b38497b authored by Benjamin Blanc's avatar Benjamin Blanc

testnode: use reportFailure():w in place of fail()

parent edb63e2b
......@@ -369,12 +369,6 @@ class TestResultProxy(RPCRetry):
"""
return self._retryRPC('stopTest', [self._test_result_path])
def fail(self):
"""
"""
return self._retryRPC('failTest', [self._test_result_path])
class TestResultProxyProxy(TestResultProxy):
"""
A wrapper/proxy to TestResultProxy
......
......@@ -455,7 +455,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
# If error appears then that's a test failure.
if error_message:
test_result_proxy.fail()
test_result_proxy.reportFailure(stdout=error_message)
self.log("Test Failed.")
return {'status_code' : 1, 'error_message': error_message}
# Test is finished.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment