Bug 1948127: Sync all folders but gtest_bin for Android gtests r=jmaher

Needed for the folders used in TestGetFilesHelper.

Differential Revision: https://phabricator.services.mozilla.com/D244110
This commit is contained in:
David P
2025-04-07 17:51:09 +00:00
parent fbfa9e170a
commit 227985015b
2 changed files with 4 additions and 6 deletions

View File

@@ -6,6 +6,4 @@
MOCHITEST_MANIFESTS += ["mochitest.toml"]
# bug 1948127
if CONFIG["OS_TARGET"] != "Android":
TEST_DIRS += ["gtest"]
TEST_DIRS += ["gtest"]

View File

@@ -117,10 +117,10 @@ class RemoteGTests(object):
if os.path.isfile(libxul_buildid_path):
self.device.push(libxul_buildid_path, self.remote_libdir)
# Push support files to device. Avoid sub-directories so that libxul.so
# Push support files to device. Avoid gtest_bin so that libxul.so
# is not included.
for f in glob.glob(os.path.join(test_dir, "*")):
if not os.path.isdir(f):
for f in glob.glob(os.path.join(test_dir, "**"), recursive=True):
if not "gtest_bin" in os.path.abspath(f):
self.device.push(f, self.remote_profile)
if test_filter is not None: