From acfeb140ed26275605895aae3464d0481081f703 Mon Sep 17 00:00:00 2001 From: rubenrua Date: Mon, 27 Nov 2023 00:09:13 +0100 Subject: [PATCH] uninstalled: Drop the usage of platform directories for test suites This feature was added before implementing the installed/uninstalled flavor in the commit a22f609. The current installed flavor implementation covers this use case, and it is not needed anymore. --- fluster/main.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/fluster/main.py b/fluster/main.py index b834318..923d04c 100644 --- a/fluster/main.py +++ b/fluster/main.py @@ -62,24 +62,6 @@ def __init__(self) -> None: ) if is_installed: self.resources_dir, self.test_suites_dir = self._get_installed_dirs() - else: - # Only use the system directory for test suites and resources if the - # local directory doesn't exist and the system directory does exist. - if ( - sys.platform.startswith("linux") - and not os.path.exists(self.test_suites_dir) - and os.path.exists(TEST_SUITES_DIR_SYS) - ): - line = "=" * 100 - print( - f"{line}\n" - f'WARNING: Using "{TEST_SUITES_DIR_SYS}" with fluster uninstalled.\n' - "This will be deprecated in future versions.\n" - "Use fluster installed versions instead.\n" - "Check https://github.com/fluendo/fluster/pull/134\n" - f"{line}" - ) - self.test_suites_dir = TEST_SUITES_DIR_SYS self.parser = self._create_parser()