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