From: justdave%syndicomm.com <> Date: Mon, 17 Feb 2003 10:33:31 +0000 (+0000) Subject: runtests.pl now lets you specify a test number on the command line if you only want... X-Git-Tag: bugzilla-2.16.3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a713f7bd3cb5f7eddcf78c6981eaafdb09cba5f;p=thirdparty%2Fbugzilla.git runtests.pl now lets you specify a test number on the command line if you only want to run that specific test instead of all of them. (no bug number) --- diff --git a/runtests.pl b/runtests.pl index 930ff116d5..376a4a1e47 100755 --- a/runtests.pl +++ b/runtests.pl @@ -27,13 +27,16 @@ use strict; use Test::Harness qw(&runtests $verbose); $verbose = 0; +my $onlytest = ""; foreach (@ARGV) { if (/^(?:-v|--verbose)$/) { $verbose = 1; - last; + } + else { + $onlytest = $_; } } -runtests(glob("t/*.t")); +runtests(glob("t/$onlytest*.t"));