Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: packagerChrome.py

Issue 29503597: Issue 4096 - remove qunit/* from other builds than devenv (Closed)
Left Patch Set: Created Aug. 2, 2017, 1:48 p.m.
Right Patch Set: Created Aug. 3, 2017, 9:57 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 4
5 import errno 5 import errno
6 import io 6 import io
7 import json 7 import json
8 import os 8 import os
9 import re 9 import re
10 from StringIO import StringIO 10 from StringIO import StringIO
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 fixTranslationsForCWS(files) 387 fixTranslationsForCWS(files)
388 388
389 if devenv: 389 if devenv:
390 import buildtools 390 import buildtools
391 import random 391 import random
392 files.read(os.path.join(buildtools.__path__[0], 'chromeDevenvPoller__.js '), relpath='devenvPoller__.js') 392 files.read(os.path.join(buildtools.__path__[0], 'chromeDevenvPoller__.js '), relpath='devenvPoller__.js')
393 files['devenvVersion__'] = str(random.random()) 393 files['devenvVersion__'] = str(random.random())
394 394
395 if metadata.has_option('general', 'testScripts'): 395 if metadata.has_option('general', 'testScripts'):
396 files['qunit/index.html'] = createScriptPage( 396 files['qunit/index.html'] = createScriptPage(
397 params, 'testIndex.html.tmpl', ('general', 'testScripts')) 397 params, 'testIndex.html.tmpl', ('general', 'testScripts')
Vasily Kuznetsov 2017/08/02 17:07:56 If you run tox, flake8 fails on this line. This ca
tlucas 2017/08/03 10:00:22 Done - also got vim-flake8 running with consinderi
398 )
398 399
399 zipdata = files.zipToString() 400 zipdata = files.zipToString()
400 signature = None 401 signature = None
401 pubkey = None 402 pubkey = None
402 if keyFile != None: 403 if keyFile != None:
403 signature = signBinary(zipdata, keyFile) 404 signature = signBinary(zipdata, keyFile)
404 pubkey = getPublicKey(keyFile) 405 pubkey = getPublicKey(keyFile)
405 writePackage(outFile, pubkey, signature, zipdata) 406 writePackage(outFile, pubkey, signature, zipdata)
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld