Commit e357de2b authored by Sebastien Robin's avatar Sebastien Robin

make erp5.util.testnode able to resist to problems with slapos proxy

parent 4a3ce9e7
...@@ -31,6 +31,7 @@ import subprocess ...@@ -31,6 +31,7 @@ import subprocess
import time import time
import xml_marshaller import xml_marshaller
import shutil import shutil
import sys
import glob import glob
MAX_PARTIONS = 10 MAX_PARTIONS = 10
...@@ -170,9 +171,15 @@ class SlapOSControler(object): ...@@ -170,9 +171,15 @@ class SlapOSControler(object):
config['instance_dict']['report-project'] = config.get("report-project", "") config['instance_dict']['report-project'] = config.get("report-project", "")
config['instance_dict']['suite-url'] = config.get("suite-url", "") config['instance_dict']['suite-url'] = config.get("suite-url", "")
for path in self.software_path_list: for path in self.software_path_list:
try:
self.slap.registerOpenOrder().request(path, self.slap.registerOpenOrder().request(path,
partition_reference='testing partition %s' % self.software_path_list.index(path), partition_reference='testing partition %s' % \
self.software_path_list.index(path),
partition_parameter_kw=config['instance_dict']) partition_parameter_kw=config['instance_dict'])
except:
self.log("SlapOSControler.runComputerPartition, \
exception in registerOpenOrder", exc_info=sys.exc_info())
raise ValueError("Unable to registerOpenOrder")
# try to run for all partitions as one partition may in theory request another one # try to run for all partitions as one partition may in theory request another one
# this not always is required but curently no way to know how "tree" of partitions # this not always is required but curently no way to know how "tree" of partitions
......
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