labgrid_test with py_binary fails on QEMU
labgrid_test
is broken on QEMU when src
is a py_binary
. It fails with:
/tmp/tmp.NrtOadVR5q/execroot/inner.runfiles/rules_python~~python~python_3_11_x86_64-unknown-linux-gnu/bin/python3: can't open file '/tmp/tmp.NrtOadVR5q/execroot/inner.runfiles/%stage2_bootstrap%': [Errno 2] No such file or directory
Here's a reproduction:
py_binary(
name = "inner",
srcs = ["test.py"],
main = "test.py",
)
labgrid_test(
name = "test",
src = ":inner",
platform = "@rules_labgrid//platform:qemu-amd64-linux",
)