Update the test configs to match the new layout.

Everything can be broken out into modules now, so there's not need to
keep the whole world in one file. This also brings us to the point
where we no longer require changes to any files in test/ compared to
upstream, only new files.

Change-Id: I3da27e12e6e2890355013c51567415436c4b517b
This commit is contained in:
Dan Albert
2015-01-09 18:03:29 +00:00
parent 036dcf6304
commit 8234f20ae7
8 changed files with 270 additions and 246 deletions

View File

@@ -0,0 +1,24 @@
import lit.util # pylint: disable=import-error
class AdbError(RuntimeError):
def __init__(self, cmd, out, err, exit_code):
super(AdbError, self).__init__(err)
self.cmd = cmd
self.out = out
self.err = err
self.exit_code = exit_code
def mkdir(path):
cmd = ['adb', 'shell', 'mkdir', path]
out, err, exit_code = lit.util.executeCommand(cmd)
if exit_code != 0:
raise AdbError(cmd, out, err, exit_code)
def push(src, dst):
cmd = ['adb', 'push', src, dst]
out, err, exit_code = lit.util.executeCommand(cmd)
if exit_code != 0:
raise AdbError(cmd, out, err, exit_code)