aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategyTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategyTestCase.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategyTestCase.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategyTestCase.java b/src/test/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategyTestCase.java
index 8c157628ef..b2f5c550ca 100644
--- a/src/test/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategyTestCase.java
+++ b/src/test/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategyTestCase.java
@@ -13,6 +13,8 @@
// limitations under the License.
package com.google.devtools.build.lib.sandbox;
+import static com.google.common.truth.Truth.assertThat;
+
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.eventbus.EventBus;
@@ -107,6 +109,12 @@ public class LinuxSandboxedStrategyTestCase {
ImmutableList.<ActionContextProvider>of());
}
+ protected LinuxSandboxedStrategy getLinuxSandboxedStrategy() {
+ SpawnActionContext spawnActionContext = executor.getSpawnActionContext("");
+ assertThat(spawnActionContext).isInstanceOf(LinuxSandboxedStrategy.class);
+ return (LinuxSandboxedStrategy) spawnActionContext;
+ }
+
private Path createTestRoot() throws IOException {
fileSystem = FileSystems.initDefaultAsNative();
Path testRoot = fileSystem.getPath(TestUtils.tmpDir());