]> granicus.if.org Git - php/commitdiff
Save test result file inside the build directory.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 28 Nov 2004 20:40:16 +0000 (20:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 28 Nov 2004 20:40:16 +0000 (20:40 +0000)
run-tests.php

index d6cfdca3561f026fffc93857a06f0b9c778a6616..13e1119ef233ee753689337affd30e42868401d9 100755 (executable)
@@ -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);