summaryrefslogtreecommitdiffstats
path: root/python/mozbuild/mozbuild/mach_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mozbuild/mozbuild/mach_commands.py')
-rw-r--r--python/mozbuild/mozbuild/mach_commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
index 2297d586b8..c00afd1c01 100644
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -29,6 +29,7 @@ from mach.decorators import (
SettingsProvider,
SubCommand,
)
+from mozfile import load_source
from voluptuous import All, Boolean, Required, Schema
import mozbuild.settings # noqa need @SettingsProvider hook to execute
@@ -1099,11 +1100,10 @@ def android_gtest(
# run gtest via remotegtests.py
exit_code = 0
- import imp
path = os.path.join("testing", "gtest", "remotegtests.py")
- with open(path, "r") as fh:
- imp.load_module("remotegtests", fh, path, (".py", "r", imp.PY_SOURCE))
+ load_source("remotegtests", path)
+
import remotegtests
tester = remotegtests.RemoteGTests()