Skip to content

Commit 1ed900c

Browse files
committed
Updated functional test to allow 'cqengine.skip.slow.scenarios' to be specified as environment variable
1 parent 88fe515 commit 1ed900c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/src/test/java/com/googlecode/cqengine/IndexedCollectionFunctionalTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ public class IndexedCollectionFunctionalTest {
8484
// Note: Unfortunately ObjectLockingIndexedCollection can slow down the functional test a lot when
8585
// disk indexes are in use (because it splits bulk inserts into a separate transaction per object).
8686
// Set this true to skip the slow scenarios *during development only!*...
87-
static final boolean SKIP_SLOW_SCENARIOS = Boolean.valueOf(System.getProperty("cqengine.skip.slow.scenarios", "false"));
87+
static final boolean SKIP_SLOW_SCENARIOS =
88+
"true".equalsIgnoreCase(System.getProperty("cqengine.skip.slow.scenarios")) // system property
89+
|| "true".equalsIgnoreCase(System.getenv("cqengine_skip_slow_scenarios")); // environment variable
8890

8991
static final boolean RUN_HIGH_PRIORITY_SCENARIOS_ONLY = false;
9092

0 commit comments

Comments
 (0)