From 651eb10c00a0688013d597da9e9218f97b3a9bc4 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 30 Nov 2017 20:38:25 -0700 Subject: [PATCH] skip tests which call out to ssh-keygen for now --- t/02-file.t | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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"); -- 2.43.0