From 7d64947564587518ec007066ac76e0373cb79da8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 8 Oct 2016 16:48:29 +0100 Subject: Test suite: stunt parsechangelog: fallback Fall back to system implementation if command line options are requested that we don't understand. This is a bit fiddly - we need to strip the stunt entry out of PATH and also out of PERLLIB. Signed-off-by: Ian Jackson --- tests/tstunt/Dpkg/Changelog/Parse.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/tstunt/Dpkg/Changelog/Parse.pm') diff --git a/tests/tstunt/Dpkg/Changelog/Parse.pm b/tests/tstunt/Dpkg/Changelog/Parse.pm index 4d797af..677580b 100644 --- a/tests/tstunt/Dpkg/Changelog/Parse.pm +++ b/tests/tstunt/Dpkg/Changelog/Parse.pm @@ -33,6 +33,8 @@ use Dpkg::Control::Changelog; use base qw(Exporter); our @EXPORT = qw(changelog_parse); +die +(join " ", %ENV)." ?" if $ENV{'DGIT_NO_TSTUNT_CLPARSE'}; + sub changelog_parse { my (%options) = @_; # ignored @@ -47,3 +49,5 @@ sub changelog_parse { return $fields; } + +1; -- cgit v1.2.3