Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #316 from ShakoHo/update-requirements
Browse files Browse the repository at this point in the history
fix if device is not adb root, and Update requirements
  • Loading branch information
Shako Ho committed Aug 12, 2015
2 parents 118800c + 12ffa32 commit 477932f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
5 changes: 5 additions & 0 deletions certsuite/adb_b2g.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ def prefs_modified():

def inner():
try:
# add checking adbd's user, if it's not root, then give a command adb root to restart adbd as root user
adbd_process = self.shell_output("ps|grep adbd")
if "root" not in adbd_process:
self._logger.info("Restart adbd running as root user")
os.system("adb root")
listing = self.shell_output("ls -l %s" % (prefs_file))
mode, user, group, size, date, time, name = listing.split(None, 6)
mtime = "%s %s" % (date, time)
Expand Down
2 changes: 2 additions & 0 deletions certsuite/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ def check_root(device):
have_root = user == "root"
if not have_root:
logger.critical("adbd running as non-root user %s" % user)
logger.critical("Restart adbd running as root user")
os.system("adb root")
break
if not have_adbd:
logger.critical("adbd process not found")
Expand Down
26 changes: 14 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
fxos-appgen >= 0.11
fxos-appgen == 0.13
gaiatest == 0.26
marionette_client == 0.7.10
marionette_extension >= 0.4.7
mozdevice >= 0.41
mozlog >= 2.1
moznetwork >= 0.24
mozprocess >= 0.18
mozprofile >= 0.21
mozrunner >= 6.1
moztest >= 0.6
marionette_extension == 0.4.8
mozdevice == 0.45
mozlog == 2.11
moznetwork == 0.26
mozprocess == 0.22
mozprofile == 0.24
mozrunner == 6.7
moztest == 0.7
mozcrash == 0.14
mozversion == 1.2
py == 1.4.20
sphinx
tornado >= 3.2
wptrunner >= 1.4
wptserve >= 1.0.1
tornado == 4.2
wptrunner == 1.14
wptserve == 1.3.0

0 comments on commit 477932f

Please sign in to comment.