From 6827e248cd3ce9b92ef4bbddb79dfe0b32c1a6ef Mon Sep 17 00:00:00 2001 From: David Steele Date: Sat, 14 Mar 2020 15:29:42 -0400 Subject: [PATCH] Move coverage results to test/result. --- test/.gitignore | 2 +- test/test.pl | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/test/.gitignore b/test/.gitignore index 1419966c6..6bc7b7aa9 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -6,8 +6,8 @@ /scratch* # Exclude paths where test code writes results (eventually want to get this down to just result) -/coverage* /result # Obsolete result paths ignored so old results don't suddenly show up as new files +/coverage* /profile diff --git a/test/test.pl b/test/test.pl index 1e9cee62f..fd852cf65 100755 --- a/test/test.pl +++ b/test/test.pl @@ -643,12 +643,13 @@ eval $oStorageTest->pathCreate($strTestPath, {strMode => '0770', bIgnoreExists => true, bCreateParent => true}); # Remove old coverage dirs -- do it this way so the dirs stay open in finder/explorer, etc. - executeTest("rm -rf ${strBackRestBase}/test/coverage/c/*"); + executeTest("rm -rf ${strBackRestBase}/test/result/coverage/lcov/*"); # Overwrite the C coverage report so it will load but not show old coverage - $oStorageTest->pathCreate("${strBackRestBase}/test/coverage", {strMode => '0770', bIgnoreExists => true}); + $oStorageTest->pathCreate( + "${strBackRestBase}/test/result/coverage", {strMode => '0770', bIgnoreExists => true, bCreateParent => true}); $oStorageBackRest->put( - "${strBackRestBase}/test/coverage/c-coverage.html", "
[ Generating New Report ]
"); + "${strBackRestBase}/test/result/coverage/coverage.html", "
[ Generating New Report ]
"); # Copy C code for coverage tests if (vmCoverageC($strVm) && !$bDryRun) @@ -1192,7 +1193,7 @@ eval executeTest( "genhtml ${strLCovFile} --config-file=${strBackRestBase}/test/.vagrant/code/lcov.conf" . " --prefix=${strBackRestBase}/test/.vagrant/code" . - " --output-directory=${strBackRestBase}/test/coverage/c"); + " --output-directory=${strBackRestBase}/test/result/coverage/lcov"); foreach my $strCodeModule (sort(keys(%{$hCoverageActual}))) { @@ -1250,7 +1251,7 @@ eval $oStorageBackRest->remove("${strBackRestBase}/test/.vagrant/code/all.lcov", {bIgnoreMissing => true}); coverageGenerate( $oStorageBackRest, "${strBackRestBase}/test/.vagrant/code", - "${strBackRestBase}/test/coverage/c-coverage.html"); + "${strBackRestBase}/test/result/coverage/coverage.html"); if ($bCoverageSummary) { @@ -1263,7 +1264,7 @@ eval } else { - executeTest("rm -rf ${strBackRestBase}/test/coverage/c"); + executeTest("rm -rf ${strBackRestBase}/test/tesult/coverage"); } } }