|
18 | 18 |
|
19 | 19 | import integrationtest.data_file_checks as data_file_checks |
20 | 20 | import integrationtest.log_file_checks as log_file_checks |
21 | | -import integrationtest.basic_checks as basic_checks |
22 | 21 | import integrationtest.data_classes as data_classes |
23 | 22 | import integrationtest.resource_validation as resource_validation |
| 23 | +import integrationtest.utility_functions as utility_functions |
24 | 24 | from integrationtest.get_pytest_tmpdir import get_pytest_tmpdir |
25 | 25 | from integrationtest.verbosity_helper import IntegtestVerbosityLevels |
26 | 26 |
|
|
93 | 93 | conf_dict.tpg_enabled = False |
94 | 94 | conf_dict.n_df_apps = number_of_dataflow_apps |
95 | 95 | conf_dict.fake_hsi_enabled = False |
| 96 | +conf_dict.remove_hdf5_files = True |
96 | 97 |
|
97 | 98 | conf_dict.config_substitutions.append( |
98 | 99 | data_classes.attribute_substitution( |
|
179 | 180 |
|
180 | 181 | def test_dunerc_success(run_dunerc, caplog): |
181 | 182 | # checks for run control success, problems during pytest setup, etc. |
182 | | - basic_checks.basic_checks(run_dunerc, caplog, print_test_name=False) |
| 183 | + utility_functions.basic_checks(run_dunerc, caplog, print_test_name=False) |
183 | 184 |
|
184 | 185 |
|
185 | 186 | def test_log_files(run_dunerc): |
@@ -220,30 +221,3 @@ def test_data_files(run_dunerc): |
220 | 221 | data_file, fragment_check_list[jdx] |
221 | 222 | ) |
222 | 223 | assert all_ok, "\N{POLICE CARS REVOLVING LIGHT} One or more data file checks failed! \N{POLICE CARS REVOLVING LIGHT}" |
223 | | - |
224 | | - |
225 | | -def test_cleanup(run_dunerc): |
226 | | - pathlist_string = "" |
227 | | - filelist_string = "" |
228 | | - for data_file in run_dunerc.data_files: |
229 | | - filelist_string += " " + str(data_file) |
230 | | - if str(data_file.parent) not in pathlist_string: |
231 | | - pathlist_string += " " + str(data_file.parent) |
232 | | - |
233 | | - if pathlist_string and filelist_string: |
234 | | - if run_dunerc.verbosity_helper.compare_level(IntegtestVerbosityLevels.integtest_debug): |
235 | | - print("============================================") |
236 | | - print("Listing the hdf5 files before deleting them:") |
237 | | - print("============================================") |
238 | | - |
239 | | - os.system(f"df -h {pathlist_string}") |
240 | | - print("--------------------") |
241 | | - os.system(f"ls -alF {filelist_string}") |
242 | | - |
243 | | - for data_file in run_dunerc.data_files: |
244 | | - data_file.unlink() |
245 | | - |
246 | | - if run_dunerc.verbosity_helper.compare_level(IntegtestVerbosityLevels.integtest_debug): |
247 | | - print("--------------------") |
248 | | - os.system(f"df -h {pathlist_string}") |
249 | | - print("============================================") |
0 commit comments