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

Unified Diff: bin/loman.py

Issue 3612004: Add board option to au test harness so that this works for others without a default board. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Clean up board Created 10 years, 2 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 | « bin/cros_au_test_harness.py ('k') | get_latest_image.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/loman.py
diff --git a/bin/loman.py b/bin/loman.py
index 0ae74e685e094e85ec66e87dea58f20431680ac3..c52a5b3d8cb1a7e0037dbfdcb6b5b2aef3585ab3 100755
--- a/bin/loman.py
+++ b/bin/loman.py
@@ -11,17 +11,7 @@ import optparse
import os
import xml.etree.ElementTree as ElementTree
-from cros_build_lib import Die
-
-
-def _FindRepoDir():
- cwd = os.getcwd()
- while cwd != '/':
- repo_dir = os.path.join(cwd, '.repo')
- if os.path.isdir(repo_dir):
- return repo_dir
- cwd = os.path.dirname(cwd)
- return None
+from cros_build_lib import Die, FindRepoDir
def _ReadManifest(manifest, err_not_found=False):
@@ -96,7 +86,7 @@ class LocalManifest:
def main(argv):
- repo_dir = _FindRepoDir()
+ repo_dir = FindRepoDir()
if not repo_dir:
Die("Unable to find repo dir.")
« no previous file with comments | « bin/cros_au_test_harness.py ('k') | get_latest_image.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698