8206241: compiler/graalunit/PhasesCommonTest.java fails with java.lang.Error: TESTBUG: no tests found for prefix org.graalvm.compiler.phases.common.test

Reviewed-by: kvn
This commit is contained in:
Ekaterina Pavlova 2018-07-20 11:39:52 -07:00
parent d38a0c13fd
commit daa3f2ce32

View File

@ -124,9 +124,12 @@ public class GraalUnitTestLauncher {
throw new Exception("Failed to find tests, VM crashed with exit code " + exitCode);
}
System.out.println("INFO: command output: [" + out.getOutput() + "]");
String outStr = out.getOutput().trim();
System.out.println("INFO: command output: [" + outStr + "]");
String[] lines = outStr.split(" ");
Arrays.sort(lines);
String[] lines = out.getStdout().split(" ");
if (lines.length > 1) { // first line contains jar file name
for (int i = 1; i < lines.length; i++) {
String className = lines[i];