diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-11-28 20:40:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-11-28 20:40:16 +0000 |
commit | 0e466665919433a92525fcf48bb1e5fd4eafb0aa (patch) | |
tree | 3947ba2ef5db1f865748529f5baae0e7d09911ea /run-tests.php | |
parent | 1907f0ab8b54c4caa02cc4fa93bbfd2d4a46bc2a (diff) | |
download | php-git-0e466665919433a92525fcf48bb1e5fd4eafb0aa.tar.gz |
Save test result file inside the build directory.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index d6cfdca356..13e1119ef2 100755 --- a/run-tests.php +++ b/run-tests.php @@ -70,6 +70,9 @@ NO_PROC_OPEN_ERROR; exit; } +// store current directory +$CUR_DIR = getcwd(); + // change into the PHP source directory. if (getenv('TEST_PHP_SRCDIR')) { @@ -508,7 +511,7 @@ if (!getenv('NO_INTERACTION')) { $compression = 0; if ($just_save_results || !mail_qa_team($failed_tests_data, $compression, $status)) { - $output_file = 'php_test_results_' . date('Ymd_Hi') . ( $compression ? '.txt.gz' : '.txt' ); + $output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . ( $compression ? '.txt.gz' : '.txt' ); $fp = fopen($output_file, "w"); fwrite($fp, $failed_tests_data); fclose($fp); |