stas 02/05/19 00:56:32
Modified: perl-framework/Apache-Test/lib/Apache TestConfig.pm
perl-framework/Apache-Test README
Log:
make the APACHE_TEST_COLOR env setting work when running from script
if running as batch, simply make sure that it's not set
updating the docs
Revision Changes Path
1.134 +1 -1
httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm
Index: TestConfig.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -r1.133 -r1.134
--- TestConfig.pm 14 May 2002 23:44:22 -0000 1.133
+++ TestConfig.pm 19 May 2002 07:56:31 -0000 1.134
@@ -7,7 +7,7 @@
use constant CYGWIN => $^O eq 'cygwin';
use constant NETWARE => $^O eq 'NetWare';
use constant WINFU => WIN32 || CYGWIN || NETWARE;
-use constant COLOR => ($ENV{APACHE_TEST_COLOR} && -t STDOUT) ? 1 : 0;
+use constant COLOR => $ENV{APACHE_TEST_COLOR} ? 1 : 0;
use constant DEFAULT_PORT => 8529;
1.27 +3 -6 httpd-test/perl-framework/Apache-Test/README
Index: README
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/README,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- README 7 Mar 2002 08:11:21 -0000 1.26
+++ README 19 May 2002 07:56:32 -0000 1.27
@@ -149,12 +149,9 @@
----------------------------------------------------------------------
Batch mode:
-When running in the batch mode and redirecting STDOUT to a file, this
-state is automagically detected and the no color mode is turned on,
-under which the program generates a minimal output to make the log
-files useful. If this doesn't work and you still get all the mess
-printed during the interactive run, set the APACHE_TEST_NO_COLOR=1 env
-var.
+When running in the batch mode and redirecting STDOUT to a file, make
+sure that the environment variable C<APACHE_TEST_COLOR> is set to 0 or
+not set at all.
----------------------------------------------------------------------
Stress testing: