Skip to content

Commit

Permalink
fix(py_pytest_test): shim path wasn't portable
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyduquettesc committed Jan 18, 2022
1 parent ac32532 commit 1e96a79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python_pytest/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ def py_pytest_test(name, srcs, deps = [], args = [], **kwargs):
)
```
"""
shim_label = Label("//python_pytest:pytest_shim.py")

py_test(
name = name,
srcs = [
"//python_pytest:pytest_shim.py",
shim_label,
] + srcs,
main = "//python_pytest:pytest_shim.py",
main = shim_label,
args = [
"--capture=no",
] + args + ["$(location :%s)" % x for x in srcs],
Expand Down

0 comments on commit 1e96a79

Please sign in to comment.