support configuration as first argument
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 22 Feb 2010 23:20:44 +0000 (23:20 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 22 Feb 2010 23:20:44 +0000 (23:20 +0000)
t/ldap-rewrite.pl

index e5cc3eb..147a1ad 100755 (executable)
@@ -11,7 +11,7 @@ BEGIN {
 }
 
 our $config;
-ok( require "t/config.pl", 'config.pl' );
+ok( require( ( shift @ARGV || 't/config.pl' ) ), 'config.pl' );
 
 sub ldap_check_error {
        my $o = shift;