Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Dec 29, 2023
1 parent e90480b commit 10d1074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cli/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow'
id 'maven-publish'
}

group = 'net.neoforged.jst'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import java.util.Collections;
import java.util.List;

import static org.junit.jupiter.api.Assertions.assertEquals;

/**
* Runs the same tests as {@link EmbeddedTest}, but runs them by actually running the executable jar
* in an external process.
Expand Down Expand Up @@ -34,6 +32,8 @@ protected void runTool(String... args) throws Exception {
System.out.println(new String(output));

int exitCode = process.waitFor();
assertEquals(0, exitCode);
if (exitCode != 0) {
throw new RuntimeException(new String(output));
}
}
}

0 comments on commit 10d1074

Please sign in to comment.