From 31c0c336db37d63b7163354c719ae5952b0b3a50 Mon Sep 17 00:00:00 2001 From: Sam Meluch Date: Fri, 20 Sep 2024 11:44:02 -0700 Subject: [PATCH] Fix small cache test by returning original cache path --- pytests/tests/test_cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pytests/tests/test_cache.py b/pytests/tests/test_cache.py index b5b5cde5..6545bed3 100644 --- a/pytests/tests/test_cache.py +++ b/pytests/tests/test_cache.py @@ -221,6 +221,7 @@ def test_download_vs_cache_size_multiple_packages(utils): @pytest.mark.skipif(try_mount_small_cache() != 0, reason="Failed to mount small cache directory.") def test_cache_directory_out_of_disk_space(utils): small_cache_path = utils.config['small_cache_path'] + orig_cache_path = utils.tdnf_config.get('main', 'cachedir') switch_cache_path(utils, small_cache_path) enable_cache(utils) clean_small_cache(utils) @@ -232,7 +233,7 @@ def test_cache_directory_out_of_disk_space(utils): run_args.append(pkgname) ret = utils.run(run_args) - switch_cache_path(utils, utils.tdnf_config.get('main', 'cachedir')) + switch_cache_path(utils, orig_cache_path) clean_cache(utils) clean_small_cache(utils) assert ret['retval'] == 1036