fix pytest localenv error (#62)

This commit is contained in:
Linlang
2024-07-11 12:13:42 +08:00
committed by GitHub
parent b1ddba388a
commit 29184aff9b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ class LocalEnv(Env[LocalConf]):
cwd = None
if local_path:
cwd = Path(local_path).resolve()
print(command)
print(f"CWD: {cwd}")
result = subprocess.run(
command,
cwd=cwd,
+2 -1
View File
@@ -30,8 +30,9 @@ class EnvUtils(unittest.TestCase):
# )
# qle = LocalEnv(conf=local_conf)
# qle.prepare()
# exe_path = str(DIRNAME / "env_tpl")
# conf_path = str(DIRNAME / "env_tpl" / "conf.yaml")
# qle.run(entry="qrun " + conf_path)
# qle.run(entry="qrun " + conf_path, local_path=exe_path)
# mlrun_p = DIRNAME / "env_tpl" / "mlruns"
# self.assertTrue(mlrun_p.exists(), f"Expected output file {mlrun_p} not found")