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

Unified Diff: src/scripts/autotest

Issue 1589022: Pass chroot flag into enter_chroot. (Closed)
Patch Set: patch 2 Created 10 years, 8 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 | « no previous file | src/scripts/run_remote_tests.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/autotest
diff --git a/src/scripts/autotest b/src/scripts/autotest
index 85ace9a9ffa4ab5e55528bd3c5ed7b702cd484a2..f9019d375950a62fce14ac1de64cbbd9a1a68b12 100755
--- a/src/scripts/autotest
+++ b/src/scripts/autotest
@@ -13,7 +13,7 @@ def run(cmd):
return subprocess.call(cmd, stdout=sys.stdout, stderr=sys.stderr)
-class MyOptionPaser(optparse.OptionParser):
+class MyOptionParser(optparse.OptionParser):
"""Override python's builtin OptionParser to accept any undefined args."""
help = False
@@ -49,10 +49,10 @@ class MyOptionPaser(optparse.OptionParser):
def print_help(self, file=None):
optparse.OptionParser.print_help(self, file)
- MyOptionPaser.help = True
+ MyOptionParser.help = True
-parser = MyOptionPaser()
+parser = MyOptionParser()
parser.allow_interspersed_args = True
DEFAULT_BOARD = os.environ.get('DEFAULT_BOARD', '')
@@ -95,7 +95,7 @@ def parse_args_and_help():
if not args and not options.build:
parser.print_help()
- if MyOptionPaser.help:
+ if MyOptionParser.help:
if options.build:
print
print 'Options inherited from autotest_client, which is used in build',
« no previous file with comments | « no previous file | src/scripts/run_remote_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698