@@ -74,10 +74,14 @@ class AbstractTestSuiteRunner {
7474 = parser.global_params .get_child (" outputSchedule" ).get_value_optional <bool >().value_or (false );
7575
7676 graph_dir_path = parser.global_params .get_child (" graphDirectory" ).get_value <std::string>();
77- if (graph_dir_path.substr (0 , 1 ) != " /" ) { graph_dir_path = executable_dir + graph_dir_path; }
77+ if (graph_dir_path.substr (0 , 1 ) != " /" ) {
78+ graph_dir_path = executable_dir + graph_dir_path;
79+ }
7880
7981 machine_dir_path = parser.global_params .get_child (" archDirectory" ).get_value <std::string>();
80- if (machine_dir_path.substr (0 , 1 ) != " /" ) { machine_dir_path = executable_dir + machine_dir_path; }
82+ if (machine_dir_path.substr (0 , 1 ) != " /" ) {
83+ machine_dir_path = executable_dir + machine_dir_path;
84+ }
8185
8286 if (write_target_object_to_file) {
8387 output_target_object_dir_path = parser.global_params .get_child (" scheduleDirectory" ).get_value <std::string>();
@@ -90,7 +94,9 @@ class AbstractTestSuiteRunner {
9094 }
9195
9296 log_file_path = parser.global_params .get_child (" outputLogFile" ).get_value <std::string>();
93- if (log_file_path.substr (0 , 1 ) != " /" ) { log_file_path = executable_dir + log_file_path; }
97+ if (log_file_path.substr (0 , 1 ) != " /" ) {
98+ log_file_path = executable_dir + log_file_path;
99+ }
94100
95101 statistics_output_file_path = parser.global_params .get_child (" outputStatsFile" ).get_value <std::string>();
96102 if (statistics_output_file_path.substr (0 , 1 ) != " /" ) {
@@ -106,7 +112,9 @@ class AbstractTestSuiteRunner {
106112
107113 virtual void setup_log_file () {
108114 log_stream.open (log_file_path, std::ios_base::app);
109- if (!log_stream.is_open ()) { std::cerr << " Error: Could not open log file: " << log_file_path << std::endl; }
115+ if (!log_stream.is_open ()) {
116+ std::cerr << " Error: Could not open log file: " << log_file_path << std::endl;
117+ }
110118 }
111119
112120 virtual void setup_statistics_file () {
@@ -140,7 +148,9 @@ class AbstractTestSuiteRunner {
140148 for (size_t i = 0 ; i < all_csv_headers.size (); ++i) {
141149 expected_header_line += all_csv_headers[i] + (i == all_csv_headers.size () - 1 ? " " : " ," );
142150 }
143- if (first_line_in_file == expected_header_line) { file_exists_and_has_header = true ; }
151+ if (first_line_in_file == expected_header_line) {
152+ file_exists_and_has_header = true ;
153+ }
144154 stats_file_check.close ();
145155 }
146156
@@ -172,8 +182,12 @@ class AbstractTestSuiteRunner {
172182 AbstractTestSuiteRunner () {}
173183
174184 virtual ~AbstractTestSuiteRunner () {
175- if (log_stream.is_open ()) { log_stream.close (); }
176- if (stats_out_stream.is_open ()) { stats_out_stream.close (); }
185+ if (log_stream.is_open ()) {
186+ log_stream.close ();
187+ }
188+ if (stats_out_stream.is_open ()) {
189+ stats_out_stream.close ();
190+ }
177191 }
178192
179193 int run (int argc, char *argv[]) {
@@ -184,7 +198,9 @@ class AbstractTestSuiteRunner {
184198 return 1 ;
185199 }
186200
187- if (!parse_common_config ()) { return 1 ; }
201+ if (!parse_common_config ()) {
202+ return 1 ;
203+ }
188204
189205 setup_log_file ();
190206
@@ -202,7 +218,9 @@ class AbstractTestSuiteRunner {
202218 create_and_register_statistic_modules (module_name);
203219 }
204220
205- if (active_stats_modules.empty ()) { log_stream << " No active statistic modules configured or loaded." << std::endl; }
221+ if (active_stats_modules.empty ()) {
222+ log_stream << " No active statistic modules configured or loaded." << std::endl;
223+ }
206224
207225 setup_statistics_file ();
208226
@@ -213,7 +231,9 @@ class AbstractTestSuiteRunner {
213231 }
214232 std::string filename_machine = machine_entry.path ().string ();
215233 std::string name_machine = filename_machine.substr (filename_machine.rfind (' /' ) + 1 );
216- if (name_machine.rfind (' .' ) != std::string::npos) { name_machine = name_machine.substr (0 , name_machine.rfind (' .' )); }
234+ if (name_machine.rfind (' .' ) != std::string::npos) {
235+ name_machine = name_machine.substr (0 , name_machine.rfind (' .' ));
236+ }
217237
218238 BspArchitecture<GraphType> arch;
219239 if (!file_reader::readBspArchitecture (filename_machine, arch)) {
@@ -229,7 +249,9 @@ class AbstractTestSuiteRunner {
229249 }
230250 std::string filename_graph = graph_entry.path ().string ();
231251 std::string name_graph = filename_graph.substr (filename_graph.rfind (' /' ) + 1 );
232- if (name_graph.rfind (' .' ) != std::string::npos) { name_graph = name_graph.substr (0 , name_graph.rfind (' .' )); }
252+ if (name_graph.rfind (' .' ) != std::string::npos) {
253+ name_graph = name_graph.substr (0 , name_graph.rfind (' .' ));
254+ }
233255 log_stream << " Start Graph: " + filename_graph + " \n " ;
234256
235257 BspInstance<GraphType> bsp_instance;
0 commit comments