• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@rules_python//python:defs.bzl", "py_test")
2
3# gazelle:ignore
4py_test(
5    name = "runfiles_test",
6    srcs = ["runfiles_test.py"],
7    data = [
8        "data/data.txt",
9        "@our_other_module//other_module/pkg:data/data.txt",
10    ],
11    env = {
12        "DATA_RLOCATIONPATH": "$(rlocationpath data/data.txt)",
13        "OTHER_MODULE_DATA_RLOCATIONPATH": "$(rlocationpath @our_other_module//other_module/pkg:data/data.txt)",
14    },
15    deps = [
16        "@our_other_module//other_module/pkg:lib",
17        "@rules_python//python/runfiles",
18    ],
19)
20