+my $timeout_in_minutes = 2;
+
+my $test_binary = $test;
+
+if ($test =~ /.*\|.*/) {
+ my @values = split(/\|/, $test);
+ my $binary = @values[0];
+ my $test_name = @values[1];
+
+ $test_binary = $binary;
+ $test = $test_name . "_" . $binary;
+ $stdout = $test.'.stdout';
+ $stderr = $test.'.stderr';
+ $output = $test;
+
+ #This is a silly workaround, but all tests that use extra parameters need a larger timeout.
+ $timeout_in_minutes = 15;
+}
+$ENV{'TEST_DRIVER_TIMEOUT_SEC'} = $timeout_in_minutes * 60;
+