Check either ntpdate command exists or not before trying to execute it
What does this MR do?
Original fix has a minor flaw, it tries to execute
ntpdate many times before switching to
sntp. As result job execution delay is introduced.
This MR improves the situation. Instead of trying to execute
ntpdate command it is suggested to check either this command exists or not, if it does not exist we immediately switch to
The fix has been tested with the following guest OSes:
- Mavericks (10.9)
- Sierra (10.12)
- Mojave (10.14)
Why was this MR needed?
Without these changes the Runner spends at least 20 seconds on useless spinning trying to execute non-existing
ntpdate command on Mojave and newer macOS versions.
Are there points in the code the reviewer needs to double check?
Does this MR meet the acceptance criteria?
In case of conflicts with
master- branch was rebased