diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-13 13:02:47 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-13 13:02:47 -0400 |
commit | f560f1e8090706db420dea526e8cad5684f8ada8 (patch) | |
tree | ec26ec7afe7d33e324d338bf774d0189db5f9ffb | |
parent | 7af12d6b5ad0e6bdabaa44a1941dee56f9de2109 (diff) | |
download | phoronix-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.php | 6 |
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)) |