Skip to content

Commit

Permalink
Reviewed switches on platform and aligned ON_CONTROLLER with `N…
Browse files Browse the repository at this point in the history
…ATIVE`
  • Loading branch information
jglick committed Aug 18, 2023
1 parent 67e67f0 commit 9445f80
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public BourneShellScriptTest(TestPlatform platform) throws Exception {
@Before public void prepareAgentForPlatform() throws Exception {
switch (platform) {
case ON_CONTROLLER:
BourneShellScript.USE_BINARY_WRAPPER = true;
s = j.jenkins;
break;
case NATIVE:
Expand Down Expand Up @@ -212,6 +213,7 @@ private Slave prepareDockerPlatforms() throws Exception {
@Test public void smokeTest() throws Exception {
int sleepSeconds;
switch (platform) {
case ON_CONTROLLER:
case NATIVE:
sleepSeconds = 0;
break;
Expand Down Expand Up @@ -438,6 +440,7 @@ static class MockHandler extends Handler {
@Test public void backgroundLaunch() throws IOException, InterruptedException {
int sleepSeconds;
switch (platform) {
case ON_CONTROLLER:
case NATIVE:
case CENTOS:
case UBUNTU:
Expand Down Expand Up @@ -483,6 +486,7 @@ static class MockHandler extends Handler {
String os;
String architecture;
switch (platform) {
case ON_CONTROLLER:
case NATIVE:
if (Platform.isDarwin()) {
os = "darwin";
Expand Down Expand Up @@ -608,6 +612,7 @@ private String psOut(String psFormat) throws InterruptedException, IOException {
private String setPsFormat() {
String cmdCol = null;
switch (platform) {
case ON_CONTROLLER:
case NATIVE:
cmdCol = Platform.isDarwin() ? "comm" : "cmd";
break;
Expand Down

0 comments on commit 9445f80

Please sign in to comment.