Re: [chrony-dev] [PATCH v2 1/2] test: check if RTC is RTC_UIE_ON capable

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Thu, Dec 12, 2019 at 08:39:20AM +0100, Christian Ehrhardt wrote:
> --- a/test/system/101-rtc
> +++ b/test/system/101-rtc
> @@ -4,6 +4,7 @@
>  
>  check_chronyd_features RTC || test_skip "RTC support disabled"
>  [ -c "/dev/rtc" ] || test_skip "missing /dev/rtc"
> +hwclock -r --test  | grep -q '^ioctl(.*RTC_UIE_ON, 0):' && test_skip "RTC not RTC_UIE_ON capable"
>  
>  test_start "real-time clock"

I'd prefer to run the test enabled in this case, but add the chronyd
error to the regexp grepping the log to consider it a success.

The other patch looks good to me.

Thanks,

-- 
Miroslav Lichvar


--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/