lighttpd: Allow running of a single test
Andy Grundman [Tue, 27 Mar 2007 20:25:11 +0000 (20:25 +0000)]
t/optional_lighttpd-fastcgi-non-root.t
t/optional_lighttpd-fastcgi.t

index cbf2a50..fd56d6c 100644 (file)
@@ -99,7 +99,7 @@ while ( check_port( 'localhost', $port ) != 1 ) {
 # run the testsuite against the server
 $ENV{CATALYST_SERVER} = "http://localhost:$port/deep/path";
 
-my @tests = glob('t/live_*');
+my @tests = (shift) || glob('t/live_*');
 eval {
     runtests(@tests);
 };
index 6ad351a..43a474e 100644 (file)
@@ -99,7 +99,7 @@ while ( check_port( 'localhost', $port ) != 1 ) {
 # run the testsuite against the server
 $ENV{CATALYST_SERVER} = "http://localhost:$port";
 
-my @tests = glob('t/live_*');
+my @tests = (shift) || glob('t/live_*');
 eval {
     runtests(@tests);
 };