CoreValidation: Enhanced result creation to modify actual result if the test report is invalid/incomplete.
@@ -123,7 +123,10 @@ def images(step, config):
def storeResult(step, config, cmd):
result = format("result_{cc}_{dev}_{target}_{now}.xml", config['device'], config['compiler'], config['target'], now = datetime.now().strftime("%Y%m%d%H%M%S"))
- step.storeResult(cmd, result, format("{cc}.{dev}.{target}", config['device'], config['compiler'], config['target']))
+ resultfile = step.storeResult(cmd, result, format("{cc}.{dev}.{target}", config['device'], config['compiler'], config['target']))
+ if not resultfile:
+ cmd.appendOutput("Storing results failed!");
+ cmd.forceResult(1)
def create():
deviceAxis = Axis("device", abbrev="d", values=Device, desc="Device(s) to be considered.")
