Skip to content

Conversation

@man-zhang
Copy link
Contributor

add options to use env variables needed in external driver

@man-zhang man-zhang requested a review from arcuri82 February 12, 2026 08:27
import java.lang.reflect.Method;
import java.net.InetSocketAddress;
import java.nio.file.Path;
import java.nio.file.Paths;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why these imports? are they used?


@Experimental
@Cfg("Use environment variables to define the paths required by External Drivers. " +
"This is necessary when the generated tests are executed on the same machine. " +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on a different machine?

String javaHome = System.getenv(envVarName);

if (javaHome == null || javaHome.isEmpty()) {
throw new RuntimeException("Cannot find "+envVarName);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Environment variable does not seem to be defined: " + envVarName. also i guess it could be an IllegalArgumentException?

@man-zhang man-zhang requested a review from arcuri82 February 13, 2026 02:31
@arcuri82 arcuri82 merged commit 9dd6b1d into master Feb 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants