diff options
author | Helen Koike <helen.koike@collabora.com> | 2018-05-15 16:44:00 -0300 |
---|---|---|
committer | Max Illfelder <illfelder@users.noreply.github.com> | 2018-05-15 12:44:00 -0700 |
commit | 561679146849864f4cae14b19c3f61ef9b8b2970 (patch) | |
tree | b47990594dcdba6108dfd820a97f0f832fb0f3b1 /tox.ini | |
parent | 4287b8a29c06a1dd916ea906c4a2fa7c13b35861 (diff) | |
download | google-compute-image-packages-561679146849864f4cae14b19c3f61ef9b8b2970.tar.gz |
Add HandleClockSync in distro/utils.py for FreeBSD (#592)
* Add HandleClockSync in distro/utils.py for FreeBSD
- There is no hwclock for FreeBSD, use ntpdate instead.
- Check in compat.py if the system is FreeBSD and don't call distro.linux_distribution() if true
- Migrate distro specific logic for clock sync to distro/utils.
- Add the following functions to distro/helpers:
def CallHwclock(logger): # Logic used by Linux systems
def CallNtpdate(logger): # Logic used by FreeBSD
- Add mock tests accordingly
Diffstat (limited to 'tox.ini')
0 files changed, 0 insertions, 0 deletions