aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/ClusterSSH/patches/15config.diff
blob: 95aa12681ace3290d4635602acc441a9a92a2846 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
This test fails because it doesn't account for running as root in the CI.

--- a/t/15config.t
+++ b/t/15config.t
@@ -535,25 +535,6 @@
     chmod( 0755, $ENV{HOME} . '/.csshrc.DISABLED', $ENV{HOME} );
 }

-note('check failure to write default config is caught');
-$ENV{HOME} = tempdir( CLEANUP => 1 );
-mkdir( $ENV{HOME} . '/.clusterssh' );
-mkdir( $ENV{HOME} . '/.clusterssh/config' );
-$config = App::ClusterSSH::Config->new();
-trap {
-    $config->load_configs();
-};
-is( $trap->leaveby, 'return', 'returned ok' );
-isa_ok( $config, "App::ClusterSSH::Config" );
-isa_ok( $config, "App::ClusterSSH::Config" );
-is( $trap->stdout, q{}, 'Expecting no STDOUT' );
-is( $trap->stderr,
-    q{Unable to write default $HOME/.clusterssh/config: Is a directory}
-        . $/
-        . $/,
-    'Expecting no STDERR'
-);
-
 note('Checking dump');
 $config = App::ClusterSSH::Config->new(
     send_menu_xml_file => $ENV{HOME} . '/.clusterssh/send_menu', );