aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar tomlu <tomlu@google.com>2018-08-01 13:20:41 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-08-01 13:22:16 -0700
commitd56a80610a10c7f7d8f47525fe5561bc032926db (patch)
tree1a71352e225cc3b3c95d6bcd9c9fd1055b9abb2f /src/test
parent731900fd714593472f62cb871abab13fd7f3355b (diff)
Pass a path to ActionExecutedEvent that is resolved via ActionExecutionContext.
If the output artifact is backed by a different file system then we need to use that file system later. RELNOTES: None PiperOrigin-RevId: 206981369
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/google/devtools/build/lib/buildeventservice/BazelBuildEventServiceModuleTest.java1
-rw-r--r--src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/buildeventservice/BazelBuildEventServiceModuleTest.java b/src/test/java/com/google/devtools/build/lib/buildeventservice/BazelBuildEventServiceModuleTest.java
index cda7069033..8657132910 100644
--- a/src/test/java/com/google/devtools/build/lib/buildeventservice/BazelBuildEventServiceModuleTest.java
+++ b/src/test/java/com/google/devtools/build/lib/buildeventservice/BazelBuildEventServiceModuleTest.java
@@ -62,6 +62,7 @@ public class BazelBuildEventServiceModuleTest {
new ActionExecutedEvent(
new ActionsTestUtil.NullAction(),
/* exception= */ null,
+ ActionsTestUtil.DUMMY_ARTIFACT.getPath(),
/* stdout= */ null,
/* stderr= */ null,
ErrorTiming.NO_ERROR);
diff --git a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
index d50717d9a7..7d7bbc424a 100644
--- a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
+++ b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
@@ -87,6 +87,7 @@ public class BuildEventStreamerTest extends FoundationTestCase {
new ActionExecutedEvent(
new ActionsTestUtil.NullAction(),
/* exception= */ null,
+ ActionsTestUtil.DUMMY_ARTIFACT.getPath(),
/* stdout= */ null,
/* stderr= */ null,
ErrorTiming.NO_ERROR);
@@ -912,6 +913,7 @@ public class BuildEventStreamerTest extends FoundationTestCase {
new ActionExecutedEvent(
new ActionsTestUtil.NullAction(),
new ActionExecutionException("Exception", /* action= */ null, /* catastrophe= */ false),
+ ActionsTestUtil.DUMMY_ARTIFACT.getPath(),
/* stdout= */ null,
/* stderr= */ null,
ErrorTiming.BEFORE_EXECUTION);
@@ -941,6 +943,7 @@ public class BuildEventStreamerTest extends FoundationTestCase {
new ActionExecutedEvent(
new ActionsTestUtil.NullAction(),
new ActionExecutionException("Exception", /* action= */ null, /* catastrophe= */ false),
+ ActionsTestUtil.DUMMY_ARTIFACT.getPath(),
/* stdout= */ null,
/* stderr= */ null,
ErrorTiming.BEFORE_EXECUTION);