summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-13 13:02:47 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-13 13:02:47 -0400
commitf560f1e8090706db420dea526e8cad5684f8ada8 (patch)
treeec26ec7afe7d33e324d338bf774d0189db5f9ffb
parent7af12d6b5ad0e6bdabaa44a1941dee56f9de2109 (diff)
downloadphoronix-test-suite-upstream-f560f1e8090706db420dea526e8cad5684f8ada8.tar.gz
phoronix-test-suite-upstream-f560f1e8090706db420dea526e8cad5684f8ada8.tar.xz
phoronix-test-suite-upstream-f560f1e8090706db420dea526e8cad5684f8ada8.zip
pts-core: Fix undefined variable of $PROPOSED_FILE_NAME in
SAVE_FILE_NAME define when not saving the results
-rw-r--r--pts-core/pts-run-test.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/pts-core/pts-run-test.php b/pts-core/pts-run-test.php
index c53ab85..ea3052d 100644
--- a/pts-core/pts-run-test.php
+++ b/pts-core/pts-run-test.php
@@ -166,7 +166,6 @@ else
}
}
-define("SAVE_FILE_NAME", $PROPOSED_FILE_NAME);
$RESULTS = new tandem_XmlWriter();
$RESULTS_IDENTIFIER = "";
@@ -188,6 +187,11 @@ if($SAVE_RESULTS)
$result_identifiers = array();
$RESULTS_IDENTIFIER = pts_prompt_results_identifier($result_identifiers);
+ define("SAVE_FILE_NAME", $PROPOSED_FILE_NAME);
+}
+else
+{
+ define("SAVE_FILE_NAME", null);
}
if(is_test($TO_RUN))