groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [3/3] incubator-groovy git commit: simplify exclusion of OS specific tests condition
Date Fri, 10 Jul 2015 17:25:12 GMT
simplify exclusion of OS specific tests condition


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/2de9d9f3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/2de9d9f3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/2de9d9f3

Branch: refs/heads/master
Commit: 2de9d9f373e15b66d7c4af87c6fccacd0f41f180
Parents: 86700ae
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Fri Jul 10 19:08:53 2015 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Fri Jul 10 19:08:53 2015 +0200

----------------------------------------------------------------------
 gradle/test.gradle | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/2de9d9f3/gradle/test.gradle
----------------------------------------------------------------------
diff --git a/gradle/test.gradle b/gradle/test.gradle
index 0328f1f..fa66edc 100644
--- a/gradle/test.gradle
+++ b/gradle/test.gradle
@@ -90,15 +90,11 @@ def buildExcludeFilter() {
     def excludes = []
 
     // deal with OS specific tests
-    def windowsTests = ['ExecuteTest_Windows']
-    def unixTests = ['ExecuteTest_LinuxSolaris']
-    Set osSpecificTests = [*windowsTests, *unixTests]
     if (Os.isFamily(Os.FAMILY_WINDOWS)) {
-        osSpecificTests.removeAll windowsTests
+        excludes << 'ExecuteTest_LinuxSolaris'
     } else if (Os.isFamily(Os.FAMILY_UNIX)) {
-        osSpecificTests.removeAll unixTests
+        excludes << 'ExecuteTest_Windows'
     }
-    excludes += osSpecificTests
 
     // if not compiled with indy support, disable indy tests
     if (!rootProject.useIndy()) {


Mime
View raw message