leba | 6409b28 | 2022-04-11 11:01:31 -0700 | [diff] [blame] | 1 | // 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. |
| 14 | package com.google.devtools.build.lib.skyframe; |
| 15 | |
| 16 | import com.google.devtools.build.lib.analysis.ConfiguredTarget; |
| 17 | import com.google.devtools.build.skyframe.SkyValue; |
| 18 | |
| 19 | /** A subclass of BuildDriverValue, meant to represent an exclusive test. */ |
| 20 | public class ExclusiveTestBuildDriverValue extends BuildDriverValue { |
| 21 | |
| 22 | private final ConfiguredTarget exclusiveTestConfiguredTarget; |
| 23 | |
| 24 | ExclusiveTestBuildDriverValue( |
| 25 | SkyValue wrappedSkyValue, ConfiguredTarget exclusiveTestConfiguredTarget) { |
leba | 121a857 | 2022-05-19 06:11:47 -0700 | [diff] [blame] | 26 | // If an exclusive test was run at all, it wasn't skipped. |
| 27 | super(wrappedSkyValue, /*skipped=*/ false); |
leba | 6409b28 | 2022-04-11 11:01:31 -0700 | [diff] [blame] | 28 | this.exclusiveTestConfiguredTarget = exclusiveTestConfiguredTarget; |
| 29 | } |
| 30 | |
| 31 | public ConfiguredTarget getExclusiveTestConfiguredTarget() { |
| 32 | return exclusiveTestConfiguredTarget; |
| 33 | } |
| 34 | } |