From af1a4d2e6aa539da21c8a511aec942ef52eb6a42 Mon Sep 17 00:00:00 2001 From: Vladimir Petko Date: Thu, 29 Aug 2024 13:41:19 +1200 Subject: [PATCH] test: fix directory. --- tests/integration/plugins/test_jlink_plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/plugins/test_jlink_plugin.py b/tests/integration/plugins/test_jlink_plugin.py index d21ed5569..0ce70646e 100644 --- a/tests/integration/plugins/test_jlink_plugin.py +++ b/tests/integration/plugins/test_jlink_plugin.py @@ -50,7 +50,9 @@ def create_test_project(base, parts) -> Project: def test_jlink_plugin_base(tmp_path, run_lifecycle): # pylint: disable=line-too-long # chisel snap is confined to user home - user_home_tmp = Path(f"{os.path.expanduser("~")}/{os.path.basename(tmp_path)}") + home = os.path.expanduser("~") + basename = os.path.basename(tmp_path) + user_home_tmp = Path(f"{home}/{basename}") atexit.register(lambda: shutil.rmtree(user_home_tmp)) parts = { "my-part": {