From 8a7371af1b2897237ebf86e38f422570ce893560 Mon Sep 17 00:00:00 2001 From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de> Date: Thu, 8 Jun 2023 11:09:51 +0200 Subject: [PATCH] skip bad tests --- tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index fb2103f..6a890d5 100644 --- a/tests.py +++ b/tests.py @@ -164,7 +164,7 @@ def test_setup_log_cmd(tmp_path): Check that logs/install-software-environment.log is updated when the module is run """ - cmd_log_file = mod.config_vars['cmd_log_file'] + cmd_log_file = mod.config_vars["cmd_log_file"] script_dir = tmp_path / "test_prepare_env" mpsd_release_to_test = "dev-23a" @@ -227,7 +227,7 @@ def test_install_environment_zlib(): script_dir.mkdir(exist_ok=True, parents=True) mpsd_release_to_test = "dev-23a" toolchain_to_test = "global_generic" - cmd_log_file = mod.config_vars['cmd_log_file'] + cmd_log_file = mod.config_vars["cmd_log_file"] mpsd_microarch = mod.get_native_microarchitecture() release_base_dir = script_dir / mpsd_release_to_test create_mock_git_repository(target_directory=script_dir, create_directory=False) @@ -383,8 +383,12 @@ def test_metadata_logging(tmp_path): assert len(read_dict) == len(keys) +@pytest.mark.skip( + reason="This function is redundant in the next version of the script." +) def test_create_log_file_names(): """Test that the log file names are created correctly.""" + pass create_log_file_names = mod.create_log_file_names mpsd_release = "dev-23a" mpsd_microarch = "sandybridge" -- GitLab