From: Charles McGarvey Date: Fri, 1 Dec 2017 03:38:25 +0000 (-0700) Subject: skip tests which call out to ssh-keygen for now X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=651eb10c00a0688013d597da9e9218f97b3a9bc4;p=chaz%2Fgroupsecret skip tests which call out to ssh-keygen for now --- diff --git a/t/02-file.t b/t/02-file.t index 2976d92..ea85144 100644 --- a/t/02-file.t +++ b/t/02-file.t @@ -28,16 +28,20 @@ is_deeply $empty->info, { is $empty->secret, undef, 'empty secret is undef'; is $empty->version, 1, 'empty version is one'; -my $key1 = $empty->add_key("$Bin/keys/foo_rsa.pub"); -is_deeply $key1, { - comment => 'foo', - filename => 'foo_rsa.pub', - secret_passphrase => undef, - type => 'rsa', -}, 'add_key in scalar context works'; - -$empty->delete_key('89b3fb766cf9568ea81adfba1cba7d05'); -is_deeply $empty->keys, {}, 'file is empty again after delete_key'; +SKIP: { + skip 'requires ssh-keygen', 2; + + my $key1 = $empty->add_key("$Bin/keys/foo_rsa.pub"); + is_deeply $key1, { + comment => 'foo', + filename => 'foo_rsa.pub', + secret_passphrase => undef, + type => 'rsa', + }, 'add_key in scalar context works'; + + $empty->delete_key('89b3fb766cf9568ea81adfba1cba7d05'); + is_deeply $empty->keys, {}, 'file is empty again after delete_key'; +}; my $basic = App::GroupSecret::File->new("$Bin/keyfiles/basic.yml");