mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
C: don't run compiled tests simultaneously
This commit is contained in:
parent
00fba54d7b
commit
7726d47795
|
@ -67,12 +67,14 @@ class CRunStrategy implements TestRunStrategy {
|
|||
List<String> runtimeOutput = new ArrayList<>();
|
||||
List<String> stdout = new ArrayList<>();
|
||||
outputFile.setExecutable(true);
|
||||
List<String> runCommand = new ArrayList<>();
|
||||
runCommand.add(outputFile.getPath());
|
||||
if (run.getArgument() != null) {
|
||||
runCommand.add(run.getArgument());
|
||||
synchronized (this) {
|
||||
List<String> runCommand = new ArrayList<>();
|
||||
runCommand.add(outputFile.getPath());
|
||||
if (run.getArgument() != null) {
|
||||
runCommand.add(run.getArgument());
|
||||
}
|
||||
runProcess(new ProcessBuilder(runCommand.toArray(new String[0])).start(), runtimeOutput, stdout);
|
||||
}
|
||||
runProcess(new ProcessBuilder(runCommand.toArray(new String[0])).start(), runtimeOutput, stdout);
|
||||
if (!stdout.isEmpty() && stdout.get(stdout.size() - 1).equals("SUCCESS")) {
|
||||
writeLines(runtimeOutput);
|
||||
run.getCallback().complete();
|
||||
|
|
Loading…
Reference in New Issue
Block a user