|
From: <jud...@us...> - 2006-07-19 21:18:08
|
Revision: 312 Author: judith_osdl Date: 2006-07-19 14:18:05 -0700 (Wed, 19 Jul 2006) ViewCVS: http://svn.sourceforge.net/stp/?rev=312&view=rev Log Message: ----------- Move create syslog log file before copies. Modified Paths: -------------- trunk/Test-Sut/lib/Test/Sut/Upload/EmailW.pm Modified: trunk/Test-Sut/lib/Test/Sut/Upload/EmailW.pm =================================================================== --- trunk/Test-Sut/lib/Test/Sut/Upload/EmailW.pm 2006-07-18 21:15:32 UTC (rev 311) +++ trunk/Test-Sut/lib/Test/Sut/Upload/EmailW.pm 2006-07-19 21:18:05 UTC (rev 312) @@ -64,6 +64,11 @@ syslog "uploading results to the server"; + require Sys::SyslogMessages; + my $syslog = new Sys::SyslogMessages(); + $syslog->tail({'number_hours' => '6', 'output_file' => './logs/syslog.txt'}); + system "chmod 644 ./logs/syslog.txt"; + # Move the test results to the current directory & archive them chdir( "$ENV{'EXEC_HOME'}" ); # Set new RESULTS_TOP @@ -92,11 +97,6 @@ system "mv -f $test_name/*.html $ENV{'RESULTS_TOP'}"; system "mv -f $test_name/result_email.txt $ENV{'RESULTS_TOP'}"; - require Sys::SyslogMessages; - my $syslog = new Sys::SyslogMessages(); - $syslog->tail({'number_hours' => '6', 'output_file' => './logs/syslog.txt'}); - system "chmod 644 ./logs/syslog.txt"; - # Go to the final location of the results $ENV{'RESULTS_TOP'}= "$ENV{ 'EXEC_HOME' }/$ENV{'TEST_ID'}"; chdir( $ENV{'RESULTS_TOP'} ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |