]> Dogcows Code - chaz/groupsecret/commitdiff
skip tests which call out to ssh-keygen for now
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 1 Dec 2017 03:38:25 +0000 (20:38 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 1 Dec 2017 03:38:25 +0000 (20:38 -0700)
t/02-file.t

index 2976d924b24005e367b40779c7c0952a2a9e5899..ea85144ba574e02af171b0a992c864b88be8ac4c 100644 (file)
@@ -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");
 
This page took 0.02564 seconds and 4 git commands to generate.