From ee914294d91532a97cbc2e7729bf459e6cd864e8 Mon Sep 17 00:00:00 2001 From: Michael Larabel Date: Sat, 3 Jan 2009 08:32:25 -0500 Subject: pts-core: Add FORCE_TIMES_TO_RUN environmental variable for forcing the number of times to run a test --- pts-core/functions/pts-functions-run.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pts-core/functions') diff --git a/pts-core/functions/pts-functions-run.php b/pts-core/functions/pts-functions-run.php index 4b1b239..e30f8f3 100644 --- a/pts-core/functions/pts-functions-run.php +++ b/pts-core/functions/pts-functions-run.php @@ -794,6 +794,13 @@ function pts_run_test($test_identifier, $extra_arguments = "", $arguments_descri { $times_to_run = 3; } + if(($force_runs = getenv("FORCE_TIMES_TO_RUN")) != false) + { + if($force_runs > $times_to_run) + { + $times_to_run = $force_runs; + } + } if(!empty($test_type)) { -- cgit