diff --git a/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java b/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java index dd8bb830e1..2c70fb11e3 100755 --- a/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java +++ b/testsuite/integration/src/main/java/org/keycloak/testutils/KeycloakServer.java @@ -139,6 +139,10 @@ public class KeycloakServer { } } + if (System.getenv("KEYCLOAK_DEV_PORT") != null) { + config.setPort(Integer.valueOf(System.getenv("KEYCLOAK_DEV_PORT"))); + } + if (System.getProperties().containsKey("resources")) { String resources = System.getProperty("resources"); if (resources == null || resources.equals("") || resources.equals("true")) {