summaryrefslogtreecommitdiffstats
path: root/pts-core
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2009-01-03 08:32:25 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2009-01-03 08:32:25 -0500
commitee914294d91532a97cbc2e7729bf459e6cd864e8 (patch)
treee169e03ae3be15c9901e466f16e062322bf74865 /pts-core
parentbad5fc4e6666180e9ed182ff46aa09f94b23b11d (diff)
downloadphoronix-test-suite-upstream-ee914294d91532a97cbc2e7729bf459e6cd864e8.tar.gz
phoronix-test-suite-upstream-ee914294d91532a97cbc2e7729bf459e6cd864e8.tar.xz
phoronix-test-suite-upstream-ee914294d91532a97cbc2e7729bf459e6cd864e8.zip
pts-core: Add FORCE_TIMES_TO_RUN environmental variable for forcing the
number of times to run a test
Diffstat (limited to 'pts-core')
-rw-r--r--pts-core/functions/pts-functions-run.php7
1 files changed, 7 insertions, 0 deletions
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))
{