mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Try to fix too long command line.
On Windows...
This commit is contained in:
parent
fffa090583
commit
11c49ce150
1 changed files with 19 additions and 3 deletions
22
run-tests.pl
22
run-tests.pl
|
@ -43,9 +43,25 @@ sub run_tests
|
||||||
print "Running [@cmd]\n";
|
print "Running [@cmd]\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Workaround for Windows spawning-SNAFU.
|
if ($use_prove)
|
||||||
my $exit_code = system(@cmd);
|
{
|
||||||
exit( $exit_success ? 0 : $exit_code ? (-1) : 0 );
|
# Workaround for Windows spawning-SNAFU.
|
||||||
|
my $exit_code = system(@cmd);
|
||||||
|
exit( $exit_success ? 0 : $exit_code ? (-1) : 0 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
require Test::Run::CmdLine::Prove;
|
||||||
|
|
||||||
|
my $p =
|
||||||
|
Test::Run::CmdLine::Prove->create(
|
||||||
|
{
|
||||||
|
'args' => [@$tests],
|
||||||
|
'env_switches' => $ENV{'PROVE_SWITCHES'},
|
||||||
|
}
|
||||||
|
);
|
||||||
|
exit(! $p->run());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $tests_glob = "*.{t.exe,py,t}";
|
my $tests_glob = "*.{t.exe,py,t}";
|
||||||
|
|
Loading…
Add table
Reference in a new issue