diff --git a/powermgr/power/BUILD.gn b/powermgr/power/BUILD.gn index 4b36da2e..d7d92d9b 100755 --- a/powermgr/power/BUILD.gn +++ b/powermgr/power/BUILD.gn @@ -12,12 +12,17 @@ # limitations under the License. import("//build/ohos_var.gni") +import("//test/xts/hats/build.gni") import("//test/xts/tools/build/suite.gni") group("HatsPowermgrPowerTest") { testonly = true - deps = [ - "hdi_power:HatsPowermgrPowerTest", - "hdi_power_additional:HatsPowermgrPowerAdditionalTest", - ] + if (hats_rich == false) { + deps = [ + "hdi_power:HatsPowermgrPowerTest", + "hdi_power_additional:HatsPowermgrPowerAdditionalTest", + ] + } else { + deps = [ "hdi_power:HatsPowermgrPowerTest" ] + } }