From 432dde355bcfe5537897754d9aeed2f33a08eda5 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 25 Oct 2012 14:50:07 +0200 Subject: [PATCH] erp5testnode: until slapos.core is updated, handle buggy error codes --- erp5/util/testnode/testnode.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/erp5/util/testnode/testnode.py b/erp5/util/testnode/testnode.py index 4f90a35179..5a865eb226 100644 --- a/erp5/util/testnode/testnode.py +++ b/erp5/util/testnode/testnode.py @@ -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) -- 2.30.9