From 1ed900c2ffd1b8817f49b738b81f61fa6c19c6d2 Mon Sep 17 00:00:00 2001 From: npgall Date: Sat, 15 Sep 2018 01:10:58 +0100 Subject: [PATCH] Updated functional test to allow 'cqengine.skip.slow.scenarios' to be specified as environment variable --- .../googlecode/cqengine/IndexedCollectionFunctionalTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/src/test/java/com/googlecode/cqengine/IndexedCollectionFunctionalTest.java b/code/src/test/java/com/googlecode/cqengine/IndexedCollectionFunctionalTest.java index eced4ab16..3c61cbb23 100644 --- a/code/src/test/java/com/googlecode/cqengine/IndexedCollectionFunctionalTest.java +++ b/code/src/test/java/com/googlecode/cqengine/IndexedCollectionFunctionalTest.java @@ -84,7 +84,9 @@ public class IndexedCollectionFunctionalTest { // Note: Unfortunately ObjectLockingIndexedCollection can slow down the functional test a lot when // disk indexes are in use (because it splits bulk inserts into a separate transaction per object). // Set this true to skip the slow scenarios *during development only!*... - static final boolean SKIP_SLOW_SCENARIOS = Boolean.valueOf(System.getProperty("cqengine.skip.slow.scenarios", "false")); + static final boolean SKIP_SLOW_SCENARIOS = + "true".equalsIgnoreCase(System.getProperty("cqengine.skip.slow.scenarios")) // system property + || "true".equalsIgnoreCase(System.getenv("cqengine_skip_slow_scenarios")); // environment variable static final boolean RUN_HIGH_PRIORITY_SCENARIOS_ONLY = false;