diff options
author | Kevin Yeh <kevin.yeh@canonical.com> | 2021-08-17 10:42:24 +0800 |
---|---|---|
committer | Kevin Yeh <kevin.yeh@canonical.com> | 2021-08-17 10:42:24 +0800 |
commit | e27ca8d172ee95b6792029b6eeeb67b56068df10 (patch) | |
tree | 00cb9c6fd8c8d36d464a743d05ac1868b18d7663 /units | |
parent | db0d74bda8e8fcc46b3c8e4c88858fff8bca37f6 (diff) |
add an if statement for judging which rtc device will be used in suspend test.
since some IoT projects have 2 rtcs and not always rtc0 supports wakeup event.
Diffstat (limited to 'units')
-rw-r--r-- | units/suspend/suspend.pxu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/units/suspend/suspend.pxu b/units/suspend/suspend.pxu index a2830d4..e7fe1ce 100644 --- a/units/suspend/suspend.pxu +++ b/units/suspend/suspend.pxu @@ -274,7 +274,11 @@ command: set -o pipefail; checkbox-support-fwts_test -f none -l "$PLAINBOX_SESSION_SHARE"/suspend_single -s s3 --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee "$PLAINBOX_SESSION_SHARE"/suspend_single_times.log else echo "Calling rtcwake" - rtcwake -m mem -s 30 + if [ -z "$RTC_DEVICE_FILE" ]; then + rtcwake -m mem -s 30 + else + rtcwake -d $RTC_DEVICE_FILE -m mem -s 30 + fi fi estimated_duration: 90.000 |