chiark / gitweb /
test suite: pretend-pbuilder: Reject unknown options
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 5 Jan 2019 20:03:08 +0000 (20:03 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 5 Jan 2019 20:03:08 +0000 (20:03 +0000)
The failure to do this was simply a bug.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/pretend-pbuilder

index 8495a2f74d9b6668919b939e6efcfb27540476a0..1d39eb382ce65e56d8e278653dbce385186df359 100755 (executable)
@@ -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];