From 54d40a398a9dc192578348ba917bef890eca68b8 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 22 Mar 2021 15:11:44 -0500 Subject: [PATCH] Correct comments in makeTestfile, add "export" --- src/tools/makeTestfile.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/makeTestfile.pl b/src/tools/makeTestfile.pl index 6cb0eb900..2d8fd3f9c 100644 --- a/src/tools/makeTestfile.pl +++ b/src/tools/makeTestfile.pl @@ -28,7 +28,7 @@ my $tool = basename($0); # Test programs that need more than 5 minutes to run should have the # EPICS_UNITTEST_TIMEOUT environment variable set in their Makefile: -# longRunningTest.t: EPICS_UNITTEST_TIMEOUT=3600 +# longRunningTest.t: export EPICS_UNITTEST_TIMEOUT=3600 # The above embeds it into the .t file. It can also be set at runtime, # which will then override that compiled-in setting (so not recommended). my $timeout = $ENV{EPICS_UNITTEST_TIMEOUT} // 5*60; @@ -75,9 +75,9 @@ my \$tool = basename(\$0); \$ENV{HARNESS_ACTIVE} = 1 if scalar \@ARGV && shift eq '-tap'; \$ENV{TOP} = abs_path(\$ENV{TOP}) if exists \$ENV{TOP}; -# The default timeout used below can be set in the Makefile that -# generates this test script. Add this line and adjust the time: -# $target: EPICS_UNITTEST_TIMEOUT=$timeout +# The timeout value below can be set in the Makefile that builds +# this test script. Add this line and adjust the value (in seconds): +# $target: export EPICS_UNITTEST_TIMEOUT=$timeout my \$timeout = \$ENV{EPICS_UNITTEST_TIMEOUT} // $timeout; __EOT__