Question : perl Test::Harness - FAILED--no tests were run for some reason

I have a batch program that runs test::harness and just recently I started getting this error:

FAILED--no tests were run for some reason

The test::harness is called from a batch file with the following command:

perl -I.. -Mlow_priority -MTest::Harness -e "$Test::Harness::switches='-I.. -I../tbuilder/lib'; my $ret = 0; my @tests = <%1*.t>; if( (localtime)[6] == 6 ){ @tests = grep /^weekly/i ,@tests; } else { @tests = grep !/^weekly/i, @tests; } eval{ $ret = runtests(@tests); }; if($@){ print $@; } " 2>&1 | perl _store_tests.pl daily_tests | perl _format_tests.pl | perl _email_tests.pl %MAIL_SERVER% [email protected] %EMAIL% "PulseCheck Testing (%DATE% %TIME%) for %COMPUTERNAME% %SERVER_NAME%"  2> testing_mail.err

The <%1*.t> represents all files in the cwd with a dot ".t" extension which are my test programs.  For some reason I believe that it is not working because nothing seems to be executing.

Any ideas or suggestions here would be great.  I also attached the .pl programs in the statement.

The run_tests.txt is the bat file that executes the command above.

Answer : perl Test::Harness - FAILED--no tests were run for some reason

Instead of <%1*.t>, try <*.t>
Random Solutions  
 
programming4us programming4us