blob: 44e7d6cc3fd5e63247bd8ea3a402bf95c26c2536 [file] [log] [blame]
leba6409b282022-04-11 11:01:31 -07001// Copyright 2022 The Bazel Authors. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14package com.google.devtools.build.lib.skyframe;
15
16import com.google.devtools.build.lib.analysis.ConfiguredTarget;
17import com.google.devtools.build.skyframe.SkyValue;
18
19/** A subclass of BuildDriverValue, meant to represent an exclusive test. */
20public class ExclusiveTestBuildDriverValue extends BuildDriverValue {
21
22 private final ConfiguredTarget exclusiveTestConfiguredTarget;
23
24 ExclusiveTestBuildDriverValue(
25 SkyValue wrappedSkyValue, ConfiguredTarget exclusiveTestConfiguredTarget) {
leba121a8572022-05-19 06:11:47 -070026 // If an exclusive test was run at all, it wasn't skipped.
27 super(wrappedSkyValue, /*skipped=*/ false);
leba6409b282022-04-11 11:01:31 -070028 this.exclusiveTestConfiguredTarget = exclusiveTestConfiguredTarget;
29 }
30
31 public ConfiguredTarget getExclusiveTestConfiguredTarget() {
32 return exclusiveTestConfiguredTarget;
33 }
34}