]> git.donarmstrong.com Git - debhelper.git/commitdiff
--max-parallel requires a number
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 5 Nov 2009 01:30:44 +0000 (20:30 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 5 Nov 2009 01:36:28 +0000 (20:36 -0500)
Debian/Debhelper/Dh_Buildsystems.pm
debhelper.pod
t/buildsystems/buildsystem_tests

index fc06a2ac16a27e3f32583b4d91473c6bf850dce1..a9a13a29d98e287b93732116c74728220073a1f1 100644 (file)
@@ -129,7 +129,7 @@ sub buildsystems_init {
            "l" => \$opt_list,
            "list" => \$opt_list,
 
-           "max-parallel:i" => \$max_parallel,
+           "max-parallel=i" => \$max_parallel,
        );
        $args{options}{$_} = $options{$_} foreach keys(%options);
        Debian::Debhelper::Dh_Lib::init(%args);
index 0a9ef41e0f4f7c6762274688afdd7176a5c276af..78de41d5479f5099ecf3963ccb5e0ce1548db7dc 100644 (file)
@@ -205,7 +205,7 @@ If the build system prefers out of source tree building but still
 allows in source building, the latter can be re-enabled by passing a build
 directory path that is the same as the source directory path.
 
-=item B<--max-parallel>[I<=maximum>]
+=item B<--max-parallel>I<=maximum>
 
 By default, the DEB_BUILD_OPTIONS environment variable can be used to
 enable parallel building, when supported by the build system.
index 16a8a75c90d45e1b5ca6f183ab2c975527013ea4..0465a93b4cac9680ff8880863dff995a4c164fc8 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-use Test::More tests => 280;
+use Test::More tests => 277;
 
 use strict;
 use warnings;
@@ -557,14 +557,10 @@ sub test_is_parallel {
 
 test_isnt_parallel( do_parallel_mk(),
        "No parallel by default" );
-test_isnt_parallel( do_parallel_mk("--max-parallel"),
-       "No parallel by default with --max-parallel" );
 
 $ENV{DEB_BUILD_OPTIONS}="parallel=5";
 test_is_parallel( do_parallel_mk(),
        "DEB_BUILD_OPTIONS=parallel=5 without --max-parallel" );
-test_is_parallel( do_parallel_mk("--max-parallel"),
-       "DEB_BUILD_OPTIONS=parallel=5 with --max-parallel" );
 test_is_parallel( do_parallel_mk("--max-parallel=2"),
        "DEB_BUILD_OPTIONS=parallel=5 with --max-parallel=2" );
 test_isnt_parallel( do_parallel_mk("--max-parallel=1"),