cvs: php-src / run-tests.php

From: Date: Sun, 28 Nov 2004 20:40:16 +0000
Subject: cvs: php-src / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29360@lists.php.net to get a copy of this message
iliaa Sun Nov 28 15:40:16 2004 EDT Modified files: /php-src run-tests.php Log: Save test result file inside the build directory. http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.197&r2=1.198&ty=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.197 php-src/run-tests.php:1.198 --- php-src/run-tests.php:1.197 Mon Sep 27 13:30:46 2004 +++ php-src/run-tests.php Sun Nov 28 15:40:16 2004 @@ -70,6 +70,9 @@ exit; } +// store current directory +$CUR_DIR = getcwd(); + // change into the PHP source directory. if (getenv('TEST_PHP_SRCDIR')) { @@ -508,7 +511,7 @@ $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);

« previous php.cvs (#29360) next »