зеркало из https://github.com/mozilla/eideticker.git
Bug 921283 - Devices should should synchronize time with host machine, not pool.ntp.org;r=davehunt
This commit is contained in:
Родитель
424f522f76
Коммит
9ff9fb4102
|
@ -7,10 +7,10 @@ analyzes browser output via HDMI or an external camera.
|
|||
|
||||
### Common
|
||||
|
||||
* Linux system with zip, ffmpeg, g++, python 2.7 development and virtualenv
|
||||
* Linux system with zip, ffmpeg, g++, ntp, python 2.7 development and virtualenv
|
||||
installed. On Ubuntu, you can get this setup by running:
|
||||
|
||||
`sudo apt-get install -y zip ffmpeg g++ python2.7-dev python-virtualenv`
|
||||
`sudo apt-get install -y zip ffmpeg g++ python2.7-dev python-virtualenv ntp`
|
||||
|
||||
* [Android Debug Bridge](https://developer.android.com/tools/help/adb.html) (adb)
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
import json
|
||||
import mozdevice
|
||||
import moznetwork
|
||||
import mozb2g
|
||||
import mozlog
|
||||
import os
|
||||
|
@ -144,7 +145,7 @@ class EidetickerMixin(object):
|
|||
|
||||
def synchronizeTime(self):
|
||||
self.shellCheckOutput([self.DEFAULT_NTPDATE_LOCATION, "-c", "1", "-d",
|
||||
"-h", "pool.ntp.org", "-s"], root=True)
|
||||
"-h", moznetwork.get_ip(), "-s"], root=True)
|
||||
|
||||
def sendSaveProfileSignal(self, appName):
|
||||
pids = self.getPIDs(appName)
|
||||
|
|
Загрузка…
Ссылка в новой задаче