From c1041d73b620b8f13619ce5e110bd33784045b6c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 27 Jun 2007 13:48:58 +0000
Subject: [PATCH] This commit includes tests for the recently committed StaticUtils.renameFile method. In addition it includes a mechanism for running Windows specific tests
---
opends/src/build-tools/org/opends/build/tools/PrepTestNG.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/opends/src/build-tools/org/opends/build/tools/PrepTestNG.java b/opends/src/build-tools/org/opends/build/tools/PrepTestNG.java
index 051d1ed..702acb8 100644
--- a/opends/src/build-tools/org/opends/build/tools/PrepTestNG.java
+++ b/opends/src/build-tools/org/opends/build/tools/PrepTestNG.java
@@ -173,6 +173,10 @@
}
}
writer.println(" </run>\n</groups>");
+ } else {
+ if (!isWindows()) {
+ writer.println(" <groups><run><exclude name=\"windows\"/></run></groups>");
+ }
}
if(packages.length > 0)
@@ -257,4 +261,9 @@
throw new BuildException("File Error: " + e.toString());
}
}
+
+ static private boolean isWindows() {
+ String os = System.getProperty("os.name");
+ return (os != null && os.toLowerCase().indexOf("windows") != -1);
+ }
}
--
Gitblit v1.10.0