Skip to content

Commit

Permalink
uninstalled: Drop the usage of platform directories for test suites
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rubenrua authored and rgonzalezfluendo committed Nov 29, 2023
1 parent 9e37ae0 commit 9eda9f5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions fluster/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 9eda9f5

Please sign in to comment.