VTS: KernelApiSysfsTest#testRtcHctosys

Only enforce test is RTC is present

Bug: 81352189
Test: run vts10 -m VtsKernelApiSysfs

Change-Id: I464b433bae91e492e84a3af4d74bc75f80f55519
diff --git a/api/sysfs/KernelApiSysfsTest.py b/api/sysfs/KernelApiSysfsTest.py
index ca5a1e3..b04db0e 100644
--- a/api/sysfs/KernelApiSysfsTest.py
+++ b/api/sysfs/KernelApiSysfsTest.py
@@ -231,7 +231,12 @@
             self.ConvertToInteger(content)
 
     def testRtcHctosys(self):
-        '''Check that at least one rtc exists with hctosys = 1.'''
+        '''If RTC is present, check that at least one rtc exists with hctosys = 1.'''
+        rtcs = target_file_utils.FindFiles(self.shell, '/dev',
+                'rtc*', '-maxdepth 1')
+        if not rtcs:
+            return
+
         rtclist = target_file_utils.FindFiles(self.shell, '/sys/class/rtc',
                 'rtc*', '-maxdepth 1 -type l')
         for entry in rtclist: