Changeset 1b5511e7 in OpenModelica


Ignore:
Timestamp:
2020-09-04T10:46:38+02:00 (4 years ago)
Author:
Martin Sjölund <martin.sjolund@…>
Children:
5e913d51
Parents:
5e72c562
Message:

Write errors when icon generator test fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/openmodelica/icon-generator/GenerateMSLIcons.mos

    r11d76cb r1b5511e7  
    2222getErrorString();
    2323for cl in classes loop
    24   print(readFile("ModelicaIcons/"+cl+".svg") + "\n");
    25   print(getErrorString() + "\n");
     24  f := "ModelicaIcons/"+cl+".svg";
     25  if regularFileExists(f) then
     26    print(readFile(f) + "\n");
     27    print(getErrorString() + "\n");
     28  else
     29    print(readFile(cl+".log") + "\n");
     30    print(getErrorString() + "\n");
     31  end if;
    2632end for;
    2733
Note: See TracChangeset for help on using the changeset viewer.