[devserver] Support downloading nativetests artifact
BUG=b:27410319
TEST=local devserver
Change-Id: Iafc9742f08564dfc4bd151d5b24733ee8791dc6d
Reviewed-on: https://chromium-review.googlesource.com/333111
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
diff --git a/build_artifact.py b/build_artifact.py
index 6ebc1ea..15540e3 100755
--- a/build_artifact.py
+++ b/build_artifact.py
@@ -54,6 +54,7 @@
ANDROID_AUTOTEST_SERVER_PACKAGE = r'[^-]*-autotest_server_package-.*\.tar.bz2'
ANDROID_TEST_SUITES = r'[^-]*-test_suites-.*\.tar.bz2'
ANDROID_CONTROL_FILES = r'[^-]*-autotest_control_files-.*\.tar'
+ANDROID_NATIVETESTS_FILE = r'[^-]*-brillo-tests-.*\.zip'
_build_artifact_locks = common_util.LockDict()
@@ -643,6 +644,8 @@
ANDROID_TEST_SUITES, is_regex_name=True)
_AddAndroidArtifact(artifact_info.CONTROL_FILES, BundledArtifact,
ANDROID_CONTROL_FILES, is_regex_name=True)
+_AddAndroidArtifact(artifact_info.ANDROID_NATIVETESTS_ZIP, BundledArtifact,
+ ANDROID_NATIVETESTS_FILE, is_regex_name=True)
class BaseArtifactFactory(object):