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

Unified Diff: projects.py

Issue 26933002: Fix commit queue to actually abort on import error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/commit-queue
Patch Set: Created 7 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 | « no previous file | workdir/README » ('j') | workdir/README » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: projects.py
diff --git a/projects.py b/projects.py
index f27eb734edc61af77686a6582b9546ca82f45ceb..488254e0fb9c655fc52a967281d4dab1ec09cc40 100644
--- a/projects.py
+++ b/projects.py
@@ -28,17 +28,19 @@ from verification import try_server
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
Paweł Hajdan Jr. 2013/10/10 23:04:33 While you're here, shouldn't ROOT_DIR be more like
agable 2013/10/10 23:21:05 It is the root of the repository...
-sys.path.insert(0, os.path.join(ROOT_DIR, '..', 'commit-queue-internal'))
+INTERNAL_DIR = os.path.abspath(
+ os.path.join(ROOT_DIR, os.pardir, 'commit-queue-internal'))
# These come from commit-queue in the internal repo.
-try:
+if os.path.isdir(INTERNAL_DIR):
+ sys.path.insert(0, INTERNAL_DIR)
import chromium_committers # pylint: disable=F0401
import gyp_committers # pylint: disable=F0401
import nacl_committers # pylint: disable=F0401
import skia_committers # pylint: disable=F0401
-except ImportError as e:
+else:
print >> sys.stderr, (
- 'Failed to find commit-queue-internal, will fail to start: %s' % e)
+ 'Failed to find commit-queue-internal; will fail to start!')
Paweł Hajdan Jr. 2013/10/10 23:04:33 I don't think this patch makes it actually fail to
agable 2013/10/10 23:21:05 Nope, but it didn't before either. CQ has never cr
chromium_committers = None
gyp_committers = None
nacl_committers = None
« no previous file with comments | « no previous file | workdir/README » ('j') | workdir/README » ('J')

Powered by Google App Engine
This is Rietveld 408576698