Skip to content

RTC clock test passed while failed to read clock from rtc #2747

Description

@stanley31huang

Bug Description

the rtc_clock test got passed result while the time is not sync to rtc
because we are not able to get clock time from rtc, so the test should be marked as failed

Cert-blocker Test Case

  • cert-blocker

To Reproduce

  1. Log into OS
  2. perform checkbox to test rct_clock on the NXP i.MX93 EVK board with rtc1
    https://github.com/canonical/checkbox/blob/main/providers/base/units/rtc/jobs.pxu#L89

Expected Result

the rtc_clock test result been marked as failed

Actual Result

the rtc_clock test result been marked as passed

Environment

i.MX93 EVK board

Relevant log output

cat: /sys/class/rtc/rtc1/since_epoch: Invalid argument
bash: line 3: 1786441029 - : syntax error: operand expected (error token is "- ")
rtc1 Clock synchronized with System Clock
RTC clock=

Additional context

it's hardware limitation that no battery on the board for the rtc1, so the time will be clear after powering off the device.
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions