Opened 7 years ago

Closed 7 years ago

#4676 closed defect (fixed)

Hudson scripts do not capture assert() output during translation

Reported by: casella Owned by: sjoelund.se
Priority: critical Milestone: 1.13.0
Component: New Instantiation Version:
Keywords: Cc:

Description

See ticket:4660#comment:8

This should be fixed for the Hudson logs reporting failures of the new front end to be fully informative

Change History (6)

comment:1 Changed 7 years ago by sjoelund.se

I believe it should be fixed in the NF by not printing to stdout. We have spent a lot of effort to remove print() statements and the like from the compiler so that you can query the information in scripting and OMPython..

comment:2 Changed 7 years ago by casella

  • Owner changed from sjoelund.se to perost
  • Status changed from new to assigned

comment:3 Changed 7 years ago by casella

  • Component changed from Testing Framework to New Instantiation

comment:4 Changed 7 years ago by sjoelund.se

  • Owner changed from perost to sjoelund.se
  • Status changed from assigned to accepted

comment:5 Changed 7 years ago by sjoelund.se

I ran the following code and fixed some compilation errors for PR2080:

sed -i "s/ assert[(]\([^;]*\)[)]/ Error.assertion(\1, sourceInfo())/" Compiler/NFFrontEnd/*.mo

comment:6 Changed 7 years ago by casella

  • Resolution set to fixed
  • Status changed from accepted to closed

The new Hudson logs in https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/Modelica_3.2.2.html seem to be a lot more informative.

I'll close the ticket unless it is found that there are still unreported errors in those logs.

Note: See TracTickets for help on using tickets.