mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -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> runtimeOutput = new ArrayList<>();
|
||||||
List<String> stdout = new ArrayList<>();
|
List<String> stdout = new ArrayList<>();
|
||||||
outputFile.setExecutable(true);
|
outputFile.setExecutable(true);
|
||||||
List<String> runCommand = new ArrayList<>();
|
synchronized (this) {
|
||||||
runCommand.add(outputFile.getPath());
|
List<String> runCommand = new ArrayList<>();
|
||||||
if (run.getArgument() != null) {
|
runCommand.add(outputFile.getPath());
|
||||||
runCommand.add(run.getArgument());
|
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")) {
|
if (!stdout.isEmpty() && stdout.get(stdout.size() - 1).equals("SUCCESS")) {
|
||||||
writeLines(runtimeOutput);
|
writeLines(runtimeOutput);
|
||||||
run.getCallback().complete();
|
run.getCallback().complete();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user