Commit 432dde35 authored by Sebastien Robin's avatar Sebastien Robin

erp5testnode: until slapos.core is updated, handle buggy error codes

parent 90d91409
......@@ -248,7 +248,12 @@ branch = %(branch)s
status_dict = slapos_method(config,
environment=config['environment'],
)
if status_dict['status_code'] not in (0, 2):
acceptable_status_code_list = [0, 2]
# 1 must not be below, but we need it until slapos.core of
# softwares built by testnode are at least version 0.32.3
if method_name == "runComputerPartition":
acceptable_status_code_list.append(1)
if status_dict['status_code'] not in acceptable_status_code_list:
node_test_suite.retry = True
node_test_suite.retry_software_count += 1
raise SubprocessError(status_dict)
......
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