Skip to content

Commit

Permalink
10-clone.t: skip SSH clone tests on Windows, it doesn't have an SSH s…
Browse files Browse the repository at this point in the history
…erver
  • Loading branch information
jacquesg committed Apr 28, 2014
1 parent 36f40cb commit e0feaa2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/10-clone.t
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ rmtree abs_path('t/test_repo_clone_callbacks');
rmtree abs_path('t/test_repo_disable_checkout');
rmtree abs_path('t/test_repo_remote_name');

if ($^O eq 'MSWin32') {
diag("Windows doesn't have a SSH server, skipping SSH clone tests");
done_testing;
exit;
}

my $remote_path = File::Spec -> rel2abs('t/test_repo');
my $remote_url = "ssh://$ENV{USER}\@localhost$remote_path";
$path = File::Spec -> rel2abs('t/test_repo_ssh');
Expand Down

0 comments on commit e0feaa2

Please sign in to comment.