Skip to content

Commit

Permalink
Corrected issue when reporting error with AVH running.
Browse files Browse the repository at this point in the history
The Python code was refering to a not existing variable.
  • Loading branch information
christophe0606 committed May 27, 2024
1 parent 1369ab4 commit 0593e61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Testing/board/runall.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def run(*args,mustPrint=False,dumpStdErr=True,live=None):
live.console.print(result.stdout)
return(Result(result.stdout))
except Exception as e:
printError(live,"Exception occured")
if DEBUG:
printError(live,"Exception occured")
ERROR_OCCURED = True
return(Result(str(e),error=True))

Expand Down Expand Up @@ -333,7 +334,7 @@ def gen_table(the_list):
latest[-1][-1]="[red]Error running AVH"
live.update(renderable=gen_table(latest))
#printError(live,"Error running AVH")
print("<p><font color=\"red\">Error running %s</font></p><PRE>" % s,file=f)
print(f'<p><font color="red">Error running {testSuite["name"]} with {avhExe[core]}</font></p><PRE>',file=f)
print(res.msg,file=f)
print("</PRE>",file=f)
continue
Expand Down

0 comments on commit 0593e61

Please sign in to comment.