Skip to content

Commit

Permalink
TEST: Don't mute System.out while running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
T0astBread committed Dec 4, 2020
1 parent f34b04c commit 8977281
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/automark/stages/TestStage.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,7 @@ public static List<Submission> run(File workingDir, Properties config, List<Subm
final PrintStream sout = System.out;
Thread testThread = new Thread(() -> {
System.out.println("Testing submission " + submission.getSlug());

// Mute System.out
System.setOut(new PrintStream(new OutputStream() {
public void write(int b) {
//DO NOTHING
}
}));

runTests(testSuite, finalTestClass, submission);

System.setOut(sout);
System.out.println("Thread " + threadNum + " is done");
});
testThread.setPriority(Thread.MIN_PRIORITY);
Expand Down

0 comments on commit 8977281

Please sign in to comment.