From 534b0f32e7527345c53d1639ab1dc0c8c43dae7f Mon Sep 17 00:00:00 2001 From: Graeme Rocher Date: Tue, 12 Nov 2013 14:10:56 +0100 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20exit=20if=20not=20forking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/_GrailsTest.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/_GrailsTest.groovy b/scripts/_GrailsTest.groovy index d7d839c09db..8be3622782f 100644 --- a/scripts/_GrailsTest.groovy +++ b/scripts/_GrailsTest.groovy @@ -91,14 +91,13 @@ target(allTests: "Runs the project's tests.") { forkedTestRunner.configure(grailsSettings.forkSettings.test) } exitCode = forkedTestRunner.fork(argsMap)?.waitFor() - + if(exitCode != null) { + exit(exitCode) + } } else { exitCode = projectTestRunner.runAllTests(argsMap) ? 0 : 1 } - if(exitCode != null) { - exit(exitCode) - } } /**