Changeset 13451


Ignore:
Timestamp:
Sep 11, 2019 2:56:01 PM (3 months ago)
Author:
molsson
Message:

#5827 Fixed a bug in TestTreeRunner related to failing tests csv-file and r13378.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mo-2267/Compiler/ModelicaFrontEnd/src/java/org/jmodelica/junit/TestTreeRunner.java

    r13378 r13451  
    100100            }
    101101            if (!(test instanceof TestTree)) {
    102                 String maybeSubTestName = test.getName();
    103102                String uniqueName = nc.makeUnique(testName);
    104103                test.setName(uniqueName);
     
    109108                if(outputFailing) {
    110109                    if(name.equals(testFile.getName())) { //Top-level test
    111                         modelNames.put(maybeSubTestName, testName);
     110                        modelNames.put(uniqueName, testName);
    112111                    } else {
    113                         modelNames.put(maybeSubTestName, String.format("%s.%s", name, testName));
     112                        modelNames.put(uniqueName, String.format("%s.%s", name, testName));
    114113                    }
    115114                }
Note: See TracChangeset for help on using the changeset viewer.