|
21 | 21 | class RunfilesTest(test_base.TestBase):
|
22 | 22 |
|
23 | 23 | def _AssertRunfilesLibraryInBazelToolsRepo(self, family, lang_name):
|
24 |
| - for s, t, exe in [("WORKSPACE.mock", "WORKSPACE", |
| 24 | + for s, t, exe in [("MODULE.bazel.mock", "MODULE.bazel", |
25 | 25 | False), ("foo/BUILD.mock", "foo/BUILD",
|
26 | 26 | False), ("foo/foo.py", "foo/foo.py", True),
|
27 | 27 | ("foo/Foo.java", "foo/Foo.java",
|
@@ -101,7 +101,7 @@ def testCppRunfilesLibraryInBazelToolsRepo(self):
|
101 | 101 |
|
102 | 102 | def testRunfilesLibrariesFindRunfilesWithoutEnvvars(self):
|
103 | 103 | for s, t, exe in [
|
104 |
| - ("WORKSPACE.mock", "WORKSPACE", False), |
| 104 | + ("MODULE.bazel.mock", "MODULE.bazel", False), |
105 | 105 | ("bar/BUILD.mock", "bar/BUILD", False),
|
106 | 106 | ("bar/bar.py", "bar/bar.py", True),
|
107 | 107 | ("bar/bar-py-data.txt", "bar/bar-py-data.txt", False),
|
@@ -161,7 +161,7 @@ def testRunfilesLibrariesFindRunfilesWithoutEnvvars(self):
|
161 | 161 |
|
162 | 162 | def testRunfilesLibrariesFindRunfilesWithRunfilesManifestEnvvar(self):
|
163 | 163 | for s, t, exe in [
|
164 |
| - ("WORKSPACE.mock", "WORKSPACE", False), |
| 164 | + ("MODULE.bazel.mock", "MODULE.bazel", False), |
165 | 165 | ("bar/BUILD.mock", "bar/BUILD", False),
|
166 | 166 | # Note: do not test Python here, because py_binary always needs a
|
167 | 167 | # runfiles tree, even on Windows, because it needs __init__.py files in
|
@@ -305,9 +305,10 @@ def testLegacyExternalRunfilesOption(self):
|
305 | 305 |
|
306 | 306 | def testRunfilesLibrariesFindRlocationpathExpansion(self):
|
307 | 307 | self.ScratchDir("A")
|
308 |
| - self.ScratchFile("A/WORKSPACE") |
| 308 | + self.ScratchFile("A/REPO.bazel") |
309 | 309 | self.ScratchFile("A/p/BUILD", ["exports_files(['foo.txt'])"])
|
310 | 310 | self.ScratchFile("A/p/foo.txt", ["Hello, World!"])
|
| 311 | + self.ScratchFile("MODULE.bazel") |
311 | 312 | self.ScratchFile("WORKSPACE", ["local_repository(name = 'A', path='A')"])
|
312 | 313 | self.ScratchFile("pkg/BUILD", [
|
313 | 314 | "py_binary(",
|
|
0 commit comments