forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an env attribute to all test and binary rule classes
Fixes bazelbuild#7364. PiperOrigin-RevId: 345355968
- Loading branch information
Showing
12 changed files
with
181 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/google/devtools/build/docgen/templates/attributes/binary/env.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<p><code>Dictionary of strings; optional; values are subject to | ||
<a href="${link make-variables#location}">$(location)</a> and | ||
<a href="${link make-variables}">"Make variable"</a> substitution</code></p> | ||
|
||
<p>Specifies additional environment variables to set when the target is | ||
executed by <code>bazel run</code>. | ||
</p> | ||
|
||
<p> | ||
<em class="harmful">NOTE: The environment variables are not set when you run the target | ||
outside of bazel (for example, by manually executing the binary in | ||
<code>bazel-bin/</code>).</em> | ||
</p> |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/google/devtools/build/docgen/templates/attributes/test/env.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<p><code>Dictionary of strings; optional; values are subject to | ||
<a href="${link make-variables#location}">$(location)</a> and | ||
<a href="${link make-variables}">"Make variable"</a> substitution</code> | ||
</p> | ||
|
||
<p>Specifies additional environment variables to set when the test is | ||
executed by <code>bazel test</code>. | ||
</p> |
5 changes: 5 additions & 0 deletions
5
src/main/java/com/google/devtools/build/docgen/templates/attributes/test/env_inherit.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<p><code>List of strings; optional</p> | ||
|
||
<p>Specifies additional environment variables to inherit from the | ||
external environment when the test is executed by <code>bazel test</code>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.