Testsuite: allow --range <number> +
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sat, 18 Mar 2017 17:55:46 +0000 (18:55 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sat, 18 Mar 2017 22:56:45 +0000 (23:56 +0100)
Now `runtest <number> +` and `runtest --range <number> +`
do the same.

test/runtest

index ec385f2940bdcd2eece9324e6f48c0fe3ddf89d5..12b091acf10c86149d8d541612eef12679492269 100755 (executable)
@@ -2531,7 +2531,7 @@ GetOptions(
     'keep'     => \$save_output,
     'slow'     => \$slow,
     'valgrind' => \$valgrind,
-    'range=i{2}'       => \my @range_wanted,
+    'range=s{2}'       => \my @range_wanted,
     'test=i@'          => \my @tests_wanted,
     'flavor|flavour=s' => $flavour,
     'help'             => sub { pod2usage(-exit => 0) },
@@ -4067,7 +4067,8 @@ Keep the various output files produced during a test run. (default: don't keep)
 
 =item B<--range> I<n0> I<n1>
 
-Run tests between (including) I<n0> and I<n1>.
+Run tests between (including) I<n0> and I<n1>. A "+" may be used to specify the "last
+test available".
 
 =item B<--slow>