diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8a14d02c..5ba84044 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -107,6 +107,7 @@ steps: RELEASE_TESTING: 1 NETWORK_TESTING: 1 AUTOMATED_TESTING: 1 + SSH_TESTING: 1 displayName: 'Build/Test (Linux)' - script: | @@ -116,4 +117,5 @@ steps: RELEASE_TESTING: 1 NETWORK_TESTING: 1 AUTOMATED_TESTING: 1 + SSH_TESTING: 0 displayName: 'Build/Test (macOS)' diff --git a/t/10-clone.t b/t/10-clone.t index 94a43139..85517788 100644 --- a/t/10-clone.t +++ b/t/10-clone.t @@ -264,6 +264,12 @@ if ($features{'ssh'} == 0) { exit; } +if (!$ENV{SSH_TESTING}) { + diag("SSH testing not available, skipping SSH clone tests"); + done_testing; + exit; +} + my $remote_path = rel2abs(catfile('t', 'test_repo')); my $remote_port = $ENV{AUTHOR_TESTING} ? 22 : 2222; my $remote_url = "ssh://$ENV{USER}\@localhost:$remote_port$remote_path"; diff --git a/t/19-push.t b/t/19-push.t index 3bbfa3a0..eac42bac 100644 --- a/t/19-push.t +++ b/t/19-push.t @@ -115,6 +115,12 @@ if ($features{'ssh'} == 0) { exit; } +if (!$ENV{SSH_TESTING}) { + diag("SSH testing not available, skipping SSH clone tests"); + done_testing; + exit; +} + my $remote_path = rel2abs(catfile('t', 'test_repo')); my $remote_port = $ENV{AUTHOR_TESTING} ? 22 : 2222; my $remote_url = "ssh://$ENV{USER}\@localhost:$remote_port$remote_path";