aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Dmitry Lomov <dslomov@google.com>2017-07-20 16:30:56 +0200
committerGravatar Klaus Aehlig <aehlig@google.com>2017-07-21 09:11:56 +0200
commit79816f6cd178eaeb665fac21f5c6b60f7c52483c (patch)
tree0bf06b43732c39bbd7718155c5fd70ee2a252258 /src
parent0e97e212f0d8f6b5543c454e129ddf0672ba550a (diff)
Use new actions API in docs.
Change-Id: Ibbc41193ca3f577fbbd1674e9dd1c7f04a246e93 PiperOrigin-RevId: 162612615
Diffstat (limited to 'src')
-rw-r--r--src/test/py/bazel/launcher_script_test.py2
-rwxr-xr-xsrc/test/shell/integration/build_event_stream_test.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/py/bazel/launcher_script_test.py b/src/test/py/bazel/launcher_script_test.py
index 3a14cf3375..690c7fb6d5 100644
--- a/src/test/py/bazel/launcher_script_test.py
+++ b/src/test/py/bazel/launcher_script_test.py
@@ -182,7 +182,7 @@ class LauncherScriptTest(test_base.TestBase):
self.ScratchFile('WORKSPACE')
self.ScratchFile('foo/foo.bzl', [
'def _impl(ctx):',
- ' ctx.action(',
+ ' ctx.actions.run(',
' arguments=[ctx.outputs.out.path],',
' outputs=[ctx.outputs.out],',
' executable=ctx.executable._hello_world,',
diff --git a/src/test/shell/integration/build_event_stream_test.sh b/src/test/shell/integration/build_event_stream_test.sh
index 348cb3c3be..93b2d5fd38 100755
--- a/src/test/shell/integration/build_event_stream_test.sh
+++ b/src/test/shell/integration/build_event_stream_test.sh
@@ -113,7 +113,7 @@ cat > failingaspect.bzl <<EOF
def _failing_aspect_impl(target, ctx):
for orig_out in ctx.rule.attr.outs:
aspect_out = ctx.actions.declare_file(orig_out.name + ".aspect")
- ctx.action(
+ ctx.actions.run_shell(
inputs = [],
outputs = [aspect_out],
command = "false",