Description: skip tests in installed version Skip badoption test in installed version, autopkgtest, because this test print some stuff in stderr. Autopkgtest consider anything in stderr as a failure. Forwarded: not-needed Author: Lucas Kanashiro Last-Update: 2015-08-16 Index: libfile-rsync-perl/test.pl =================================================================== --- libfile-rsync-perl.orig/test.pl 2015-09-04 23:48:14.096590750 +0200 +++ libfile-rsync-perl/test.pl 2015-09-04 23:48:14.096590750 +0200 @@ -8,7 +8,7 @@ use strict; use vars qw($loaded $fail); $loaded = 1; -note "NOTE: expect 'badoption' message for test 7"; +note "NOTE: expect 'badoption' message for test 7" if(!$ENV{AUTOPKGTEST_TMP}); note "NOTE: expect 'deprecated' message for test 8"; ok($loaded, 'module loaded'); @@ -85,11 +85,13 @@ ); } -rmtree('destdir'); +if(!$ENV{AUTOPKGTEST_TMP}) { + rmtree('destdir'); # invalid option -{ - my $rs = File::Rsync->new(archive => 1, badoption => 1); - ok(!defined($rs), 'invalid option'); + { + my $rs = File::Rsync->new(archive => 1, badoption => 1); + ok(!defined($rs), 'invalid option'); + } } # deprecated hash ref