def execute(self, *args, **kwargs): masterTbl = MasterTbl() result_fn = masterTbl['result_fn'] runtime_fn = masterTbl['runtime_fn'] input_fnA = masterTbl['pargs'] result = self.__parse_input_fn(input_fnA) my_result = { 'testresult' : result, "comment" : comment_block.split('\n') } f = open(result_fn,"w") f.write(json.dumps(my_result, sort_keys=True, indent=2, separators=(', ', ': '))) f.close() if (not os.path.exists(runtime_fn)): Error("Unable to open: ", runtime_fn) f = open(runtime_fn) runtime = json.loads(f.read()) f.close() t1 = time.time() runtime['T1'] = t1 runtime['TT'] = t1 - runtime['T0'] unameT = get_platform() for k in unameT: runtime[k] = unameT[k] f = open(runtime_fn,"w") f.write(json.dumps(runtime, sort_keys=True, indent=2, separators=(', ', ': '))) f.close()
def execute(self, *args, **kwargs): masterTbl = MasterTbl() masterTbl['testRptLoc'] = "testreports" masterTbl['testRptExt'] = ".rtm" masterTbl['descriptExt'] = ".desc" masterTbl['testRptRootDir'] = os.path.join(masterTbl['projectDir'], masterTbl['testRptLoc']) platformT = get_platform() masterTbl['os_mach'] = platformT['os_mach'] masterTbl['hostname'] = platformT['node'] masterTbl['target'] = platformT.get('targ_summary',"")
def execute(self, *args, **kwargs): masterTbl = MasterTbl() version = Version() epoch = time.time() masterTbl['testreportLoc'] = 'testreports' masterTbl['testReportDir'] = os.path.join(masterTbl['projectDir'], masterTbl['testreportLoc']) masterTbl['testRptExt'] = '.rtm' masterTbl['descriptExt'] = '.desc' masterTbl['ThemisVersion'] = 'Themis ' + version.tag() masterTbl['currentEpoch'] = epoch masterTbl['origEpoch'] = masterTbl['currentEpoch'] masterTbl['target'] = os.environ.get("TARG_SUMMARY") or "" masterTbl['errors'] = 0 masterTbl['diffCount'] = 0 masterTbl['failCount'] = 0 masterTbl['resultMaxLen'] = 12 masterTbl['minNP'] = 0 masterTbl['maxNP'] = sys.maxsize #------------------------------------------------------------ # Add projectDir to PYTHONPATH for user functions sys.path.append(masterTbl['projectDir']) unameT = get_platform() currentUUID = full_date_string(epoch) + "-" + unameT['os_mach'] for k in unameT: masterTbl[k] = unameT[k] masterTbl['hostname'] = unameT['machine'] #------------------------------------------------------------ # Setup gauntlet masterTbl['gauntlet'] = Gauntlet(GauntletData()) # masterTbl['gauntlet'] = None --> for later masterTbl['candidateTstT'] = {} masterTbl['tstT'] = {} masterTbl['rptT'] = {}