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

Unified Diff: editor/build/build.py

Issue 23224015: editor build change to suppress a 'restore windows' dialog on the mac buildbots (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | tools/bots/editor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/build/build.py
===================================================================
--- editor/build/build.py (revision 26612)
+++ editor/build/build.py (working copy)
@@ -757,6 +757,12 @@
zipper = ziputils.ZipUtil(join(buildout, editorArchive), buildos)
zipper.UnZip(tempDir)
+ # before we run the editor, suppress any 'restore windows' dialogs
+ if sys.platform == 'darwin':
+ args = ['defaults', 'write', 'org.eclipse.eclipse.savedState',
+ 'NSQuitAlwaysKeepsWindows', '-bool', 'false']
+ subprocess.call(args, shell=IsWindows())
+
editorExecutable = GetEditorExecutable(join(tempDir, 'dart'))
args = [editorExecutable, '--test', '--auto-exit',
'-data', join(tempDir, 'workspace')]
« no previous file with comments | « no previous file | tools/bots/editor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698