Skip to content

Commit

Permalink
Attempt to change test directory to fix pipestat results reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Feb 22, 2024
1 parent ad02083 commit 6b2c599
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_comprehensive.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def test_comprehensive_looper_pipestat():
with TemporaryDirectory() as d:
repo = Repo.clone_from(REPO_URL, d)

path_to_looper_config = os.path.join(d, "pipestat", ".looper.yaml")
# TODO executing either the .py or the .sh pipeline does not correctly report results because pytest is running from a different directory
pipestat_dir = os.path.join(d, "pipestat")
os.chdir(pipestat_dir)

path_to_looper_config = os.path.join(pipestat_dir, ".looper_pipestat_shell.yaml")

x = [cmd, "-d", "--looper-config", path_to_looper_config]

Expand All @@ -47,3 +51,5 @@ def test_comprehensive_looper_pipestat():
assert result["Pipestat compatible"] is True
except Exception:
raise pytest.fail("DID RAISE {0}".format(Exception))

print(result)

0 comments on commit 6b2c599

Please sign in to comment.