diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/src/test/java/tests/util/TestEnvironment.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/support/src/test/java/tests/util/TestEnvironment.java b/support/src/test/java/tests/util/TestEnvironment.java index 088e624..fd02123 100644 --- a/support/src/test/java/tests/util/TestEnvironment.java +++ b/support/src/test/java/tests/util/TestEnvironment.java @@ -145,7 +145,12 @@ public final class TestEnvironment { } private static void copyProperty(Properties p, String key) { - p.put(key, System.getProperty(key)); + String value = System.getProperty(key); + if (value != null) { + p.put(key, value); + } else { + p.remove(key); + } } private static void makeDirectory(File path) { |