Commit 3fda1482 authored by Sebastien Robin's avatar Sebastien Robin

testnode: cancel test result if we have ValueError

When testnodes are unable to create partitions and unable to find
runTestSuite command, this change avoid having the testnode always
trying to reuse same revision by forcing to move test result to failed
parent 88aea739
......@@ -439,6 +439,11 @@ from the distributor.")
log("ValueError", exc_info=sys.exc_info())
if node_test_suite is not None:
node_test_suite.retry_software_count += 1
if remote_test_result_needs_cleanup:
test_result.reportFailure(
command='', stdout='',
stderr="ValueError was raised : %s" % (e,),
)
except CancellationError, e:
log("CancellationError", exc_info=sys.exc_info())
self.process_manager.under_cancellation = False
......
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