Commits

Palmer, 2E0EOL committed 923103d Draft

check_disks_zpool unit tests should propagate debug flag to actual plugin

  • Participants
  • Parent commits 486d65b
  • Branches develop

Comments (0)

Files changed (1)

t/check_disks_zpool.t

 	);
 
 	my $testdir = 'testdata/check_disks_zpool';
-	return 1 if ( !getopts('t:', \%opts) );
+	return 1 if ( !getopts('dt:', \%opts) );
 	return 1 if ( $opts{'t'} && $opts{'t'} !~ m/^\d+/ );
 	$test_count = ( $opts{'t'} ) ? ( 1 ) : ( 10 );
 	plan tests => $test_count;
 				next;
 			}
 
-			is(main(q => 1, f => $filename), $expect_exit, "$filename exits $expect_exit");
+			is(main(d => $opts{'d'}, q => 1, f => $filename), $expect_exit, "$filename exits $expect_exit");
 		}
 	}
 	return 0;