libhidl_test: stop expecting HIDL HALs am: 79dd1fff93

Original change: https://android-review.googlesource.com/c/platform/system/libhidl/+/2843913

Change-Id: I6618890649e3faf4e4a5c5b8c94e719885acd331
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp b/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp
index 340ec0c..b824a3e 100644
--- a/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp
+++ b/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp
@@ -122,6 +122,7 @@
     }
 }
 
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AllocatorHidlTest);
 INSTANTIATE_TEST_SUITE_P(
         PerInstance, AllocatorHidlTest,
         testing::ValuesIn(android::hardware::getAllHalInstanceNames(IAllocator::descriptor)),
diff --git a/transport/base/1.0/vts/functional/vts_ibase_test.cpp b/transport/base/1.0/vts/functional/vts_ibase_test.cpp
index 96125d0..f8f8b33 100644
--- a/transport/base/1.0/vts/functional/vts_ibase_test.cpp
+++ b/transport/base/1.0/vts/functional/vts_ibase_test.cpp
@@ -155,7 +155,9 @@
             }
         }));
 
-        ASSERT_FALSE(all_hals_.empty());  // sanity
+        if (all_hals_.empty()) {
+            GTEST_SKIP() << "No HIDL HAls on this device.";
+        }
     }
 
     void EachHal(const std::function<void(const Hal&)>& check) {