Skip to content

Commit f29bcdd

Browse files
authored
Remove unused function in run_tests.py (#411)
1 parent 5d7d904 commit f29bcdd

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

scripts/run_tests.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ def __get_project_path():
4040
script_dir = script_path.parent # Directory containing the script
4141
return script_dir.parent
4242

43-
@staticmethod
44-
def __source_script(script_path):
45-
if platform.system() == "Windows":
46-
return {}
47-
command = f"bash -c 'source {script_path} && env'"
48-
result = subprocess.run(command, stdout=subprocess.PIPE, shell=True, text=True)
49-
if result.returncode == 0:
50-
# Parse the output environment variables
51-
env_vars = {}
52-
for line in result.stdout.splitlines():
53-
if '=' in line:
54-
key, value = line.split("=", 1)
55-
env_vars[key] = value
56-
return env_vars
57-
else:
58-
print(f"Failed to source script: {script_path}")
59-
return {}
60-
6143
def setup_env(self):
6244
if (Path(self.__get_project_path()) / "install").exists():
6345
self.work_dir = Path(self.__get_project_path()) / "install" / "bin"

0 commit comments

Comments
 (0)