Skip to content

Commit e9a6e61

Browse files
committed
Pass CONTINUOUS_INTEGRATION to product tests containers
1 parent 34b02bc commit e9a6e61

File tree

1 file changed

+5
-4
lines changed
  • testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/cli

1 file changed

+5
-4
lines changed

testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/cli/TestRun.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ private Environment getEnvironment()
328328
.setLogsBaseDir(logsDirBase)
329329
.setIpv6(ipv6);
330330

331+
if (isEnvSet("CONTINUOUS_INTEGRATION")) {
332+
builder.configureContainers(container ->
333+
container.withEnv("CONTINUOUS_INTEGRATION", "true"));
334+
}
335+
331336
builder.configureContainer(TESTS, this::mountReportsDir);
332337
builder.configureContainer(TESTS, container -> {
333338
List<String> temptoJavaOptions = Splitter.on(" ").omitEmptyStrings().splitToList(
@@ -339,10 +344,6 @@ private Environment getEnvironment()
339344
unsafelyExposePort(container, 5007); // debug port
340345
}
341346

342-
if (isEnvSet("CONTINUOUS_INTEGRATION")) {
343-
container.withEnv("CONTINUOUS_INTEGRATION", "true");
344-
}
345-
346347
// Install Java distribution if necessary
347348
jdkProvider.applyTo(container)
348349
// the test jar is hundreds MB and file system bind is much more efficient

0 commit comments

Comments
 (0)