Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1125)

Unified Diff: client/common_lib/utils.py

Issue 3116009: Update autotest tests to use make -j where possible. (Closed) Base URL: ssh://git@chromiumos-git/autotest.git
Patch Set: Convert last two tests to use utils.make(), saving another 20 seconds. Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/bin/unit_test.py ('k') | client/deps/glbench/glbench.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/common_lib/utils.py
diff --git a/client/common_lib/utils.py b/client/common_lib/utils.py
index 6ca33facaf80a1eda5b772c74979e454265097a0..fd6f633586ea0d9493eed158ddf74c6985efb878 100644
--- a/client/common_lib/utils.py
+++ b/client/common_lib/utils.py
@@ -1165,6 +1165,16 @@ def configure(extra=None, configure='./configure'):
system('%s %s' % (configure, ' '.join(args)))
+def make(extra='', make='make', timeout=None, ignore_status=False):
+ """
+ Run make, adding MAKEOPTS to the list of options.
+
+ @param extra: extra command line arguments to pass to make.
+ """
+ cmd = '%s %s %s' % (make, os.environ.get("MAKEOPTS", ""), extra)
+ return system(cmd, timeout=timeout, ignore_status=ignore_status)
+
+
def compare_versions(ver1, ver2):
"""Version number comparison between ver1 and ver2 strings.
« no previous file with comments | « client/bin/unit_test.py ('k') | client/deps/glbench/glbench.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698