summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-01-05 20:03:08 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-01-05 20:03:08 +0000
commit1ac02b63e0fe5e6f0f708c268e46799786307f13 (patch)
tree0c76e8755b5fc8509cc7e0fd86651e8b8697dfab
parentc5fa292f1f6b9517116c80d9bae313b7db4cedac (diff)
test suite: pretend-pbuilder: Reject unknown options
The failure to do this was simply a bug. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xtests/pretend-pbuilder3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/pretend-pbuilder b/tests/pretend-pbuilder
index 8495a2f..1d39eb3 100755
--- a/tests/pretend-pbuilder
+++ b/tests/pretend-pbuilder
@@ -12,7 +12,8 @@ die "pbuilder: you should use me only to build, dgit"
my $debbuildopts = undef;
my $distribution = undef;
GetOptions('debbuildopts=s' => \$debbuildopts,
- 'distribution=s' => \$distribution);
+ 'distribution=s' => \$distribution)
+ or die;
# ignore user args; last argument has to be the .dsc filename
my $dsc = $ARGV[-1];