diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-07-27 18:56:00 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-03 15:56:53 -0500 |
commit | df75483098df5027edf3e13765959b5f1a86e586 (patch) | |
tree | b7c6dc859355e252ac66f0567932ddc145d476df /tester/covoar/ReportsHtml.cc | |
parent | Remove projectName global variable (diff) | |
download | rtems-tools-df75483098df5027edf3e13765959b5f1a86e586.tar.bz2 |
Remove outputDirectory global variable
- Replaced outputDirectory in app_common with a local variable in
covoar()
- Created the outputDirectory_m member variable
- Added parameters to Reports* constructors to initialize
outputDirectory_m and non member functions
Diffstat (limited to 'tester/covoar/ReportsHtml.cc')
-rw-r--r-- | tester/covoar/ReportsHtml.cc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tester/covoar/ReportsHtml.cc b/tester/covoar/ReportsHtml.cc index 2c210b5..645dfcd 100644 --- a/tester/covoar/ReportsHtml.cc +++ b/tester/covoar/ReportsHtml.cc @@ -41,8 +41,15 @@ namespace Coverage { time_t timestamp, const std::string& symbolSetName, Coverage::Explanations& allExplanations, - const std::string& projectName - ): ReportsBase( timestamp, symbolSetName, allExplanations, projectName ), + const std::string& projectName, + const std::string& outputDirectory + ): ReportsBase( + timestamp, + symbolSetName, + allExplanations, + projectName, + outputDirectory + ), lastState_m( A_SOURCE ) { reportExtension_m = ".html"; @@ -105,7 +112,12 @@ namespace Coverage { ) { // Open the file - ReportsBase::OpenFile( fileName, symbolSetName_m, aFile ); + ReportsBase::OpenFile( + fileName, + symbolSetName_m, + aFile, + outputDirectory_m + ); // Put Header information on the file aFile << "<html>" << std::endl |