File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 4848 " Could not find the lib/ directory \n " ;
4949 exit (1);
5050 }
51- }
5251
53- BEGIN {
5452 # Check backward compatibility support
5553 # By setting the environment variable MTR_VERSION
5654 # it's possible to use a previous version of
338336my $opt_debug_sync_timeout = 300; # Default timeout for WAIT_FOR actions.
339337my $warn_seconds = 60;
340338
341- sub testcase_timeout ($) {
342- my ($tinfo )= @_ ;
343- if (exists $tinfo -> {' case-timeout' }) {
344- # Return test specific timeout if *longer* that the general timeout
345- my $test_to = $tinfo -> {' case-timeout' };
346- $test_to *= 10 if $opt_valgrind ;
347- return $test_to * 60 if $test_to > $opt_testcase_timeout ;
348- }
349- return $opt_testcase_timeout * 60;
350- }
351-
339+ sub testcase_timeout ($) { return $opt_testcase_timeout * 60; }
352340sub check_timeout ($) { return testcase_timeout($_ [0]); }
353341
354342our $opt_warnings = 1;
You can’t perform that action at this time.
0 commit comments