Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
1mm0rt41PC authored Oct 2, 2024
1 parent 79cd979 commit a6bd4ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,17 @@ def _build( cmd:list, repo:str, outputBin:str, testArg:str, errorExpected:int, z
run(cmd)

if not os.path.isfile(outputBin):
logOutput.close()
if logOutput:
logOutput.close()
appveyor_push(logFile)
return log_err(f'Build {repo} FAIL: `{outputBin}` not present')

if (_err:=run((outputBin+' '+str(testArg)).strip('\r\n\t '))) != errorExpected:
if retry:
log_warn(f'FAIL to build a valid {repo} (This bin return {_err}, expected {errorExpected}) Retrying...')
return Build._build(cmd=cmd, repo=repo, outputBin=outputBin, testArg=testArg, errorExpected=errorExpected, retry=False, lockThread=False)
logOutput.close()
if logOutput:
logOutput.close()
appveyor_push(logFile)
return log_err(f'FAIL to build a valid {repo} (This bin return {_err}, expected {errorExpected})...')

Expand Down

0 comments on commit a6bd4ee

Please sign in to comment.