summaryrefslogtreecommitdiffstats
path: root/testrunner
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-10-18 01:13:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-18 01:13:13 +0000
commitc34b71e7338aff6383c6826a2b615905fe8e40e7 (patch)
tree1649cb3a39ac0bb97d9cc879dd19a14dc9dc1708 /testrunner
parent54c80deb90df1f1ab3a5550a3159c12dec98c54e (diff)
parenta6560bb043a9d7e6089a53d9650f59403a4d9817 (diff)
downloadandroid_development-c34b71e7338aff6383c6826a2b615905fe8e40e7.tar.gz
android_development-c34b71e7338aff6383c6826a2b615905fe8e40e7.tar.bz2
android_development-c34b71e7338aff6383c6826a2b615905fe8e40e7.zip
Remove unused GetHostOsArch am: c1c3e5f1d8 am: eb469e00c9
am: a6560bb043 Change-Id: Ie7d357aedecff2bcf3222868b2c20339f139c542
Diffstat (limited to 'testrunner')
-rw-r--r--testrunner/android_build.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/testrunner/android_build.py b/testrunner/android_build.py
index 2baa5afa7..2bbb8f608 100644
--- a/testrunner/android_build.py
+++ b/testrunner/android_build.py
@@ -67,30 +67,6 @@ def GetHostOutDir():
return host_out_path
-def GetHostOsArch():
- """Identify the host os and arch.
-
- Returns:
- The triple (HOST_OS, HOST_ARCH, HOST_OS-HOST_ARCH).
-
- Raises:
- AbortError: If the os and/or arch could not be found.
- """
- command = ("CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core "
- "make --no-print-directory -C \"%s\" -f build/core/config.mk "
- "dumpvar-report_config") % GetTop()
-
- # Use the shell b/c we set some env variables before the make command.
- config = subprocess.Popen(command, stdout=subprocess.PIPE,
- shell=True).communicate()[0]
- host_os = re.search("HOST_OS=(\w+)", config).group(1)
- host_arch = re.search("HOST_ARCH=(\w+)", config).group(1)
- if not (host_os and host_arch):
- logger.Log("Error: Could not get host's OS and/or ARCH")
- raise errors.AbortError
- return (host_os, host_arch, "%s-%s" % (host_os, host_arch))
-
-
def GetOutDir():
"""Returns the full pathname of the "out" of the Android development tree.