Skip to content

Commit

Permalink
shell/openssh: disable tests on Travis because of #36
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed Jul 29, 2020
1 parent dc1a50c commit 2b9fa50
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.time.Instant;
import java.util.EnumSet;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;

public class ShellTests {
Expand Down Expand Up @@ -64,6 +65,12 @@ public void sshdClientTest() throws IOException {

@Test
public void opensshClientTest() throws IOException {
String travis = System.getenv("TRAVIS");
if(Objects.equals("true", travis)) {
System.err.println("Skipping OpenSSH tests on Travis due to https://github.com/UQ-RCC/nimrodg/issues/36");
return;
}

/* Only test OpenSSH if its available. */
Path openSsh = Paths.get("/usr/bin/ssh");
if(!Files.exists(openSsh)) {
Expand Down

0 comments on commit 2b9fa50

Please sign in to comment.