From cf4ed2c5805c253f20c082cda6e91958994f846f Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Mon, 19 May 2025 16:23:46 +0200 Subject: [PATCH] Remove unused function in run_tests.py --- scripts/run_tests.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/scripts/run_tests.py b/scripts/run_tests.py index a0e1251c2..443eb3db7 100644 --- a/scripts/run_tests.py +++ b/scripts/run_tests.py @@ -40,24 +40,6 @@ def __get_project_path(): script_dir = script_path.parent # Directory containing the script return script_dir.parent - @staticmethod - def __source_script(script_path): - if platform.system() == "Windows": - return {} - command = f"bash -c 'source {script_path} && env'" - result = subprocess.run(command, stdout=subprocess.PIPE, shell=True, text=True) - if result.returncode == 0: - # Parse the output environment variables - env_vars = {} - for line in result.stdout.splitlines(): - if '=' in line: - key, value = line.split("=", 1) - env_vars[key] = value - return env_vars - else: - print(f"Failed to source script: {script_path}") - return {} - def setup_env(self): if (Path(self.__get_project_path()) / "install").exists(): self.work_dir = Path(self.__get_project_path()) / "install" / "bin"