Exemple #1
0
 def testUntangle_GClientSyncForDepsTrybot(self):
   stdout_lines = GCLIENT_SYNC_MULTI_JOB_DEPS_TRY_STDOUT.splitlines(False)
   self.assertEqual([
       '.../build/src/DEPS',
       '________ running \'svn update --revision BASE\' in \'.../build/src\'',
       'Restored \'DEPS\'',
       'At revision 61624.',
       'Syncing projects:  76% (46/60)',
       '________ running \'svn update --revision BASE\' '
       'in \'.../build/src/third_party/WebKit\'',
       'At revision 12345.',
       'Syncing projects: 100% (60/60)',
       'Syncing projects: 100% (60/60), done.',
       'solutions=[{"name":"src","url":"http://src.chromium.org/svn/'
       'trunk/src","custom_deps":{"src/webkit/data/layout_tests/'
       'LayoutTests":None,"src/third_party/WebKit/LayoutTests":None,},'
       '"custom_vars":{"webkit_trunk":"http://svn.webkit.org/repository/'
       'webkit/trunk","googlecode_url":"http://%s.googlecode.com/svn",},},]',
       '_____ src at 61624',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/platform/chromium-win/storage/domstorage '
       '--revision 69169\' in \'.../build\'',
       'At revision 69169.',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/fast/events --revision 69169\' '
       'in \'.../build\'',
       'At revision 69169.',
       '________ running \'svn update .../build/src/third_party/WebKit/'
       ' --revision 69169\' in \'.../build\'',
       'At revision 69169.',
       '________ running \'/usr/bin/python src/build/'
       'gyp_chromium\' in \'.../build\'',
       'Updating projects from gyp files...',
       'Generating .../build/src/sandbox/sandbox.Makefile',
       'patching file DEPS',
       'solutions=[{"name":"src","url":"http://src.chromium.org/svn/'
       'trunk/src","custom_deps":{"src/webkit/data/layout_tests/'
       'LayoutTests":None,"src/third_party/WebKit/LayoutTests":None,},'
       '"custom_vars":{"webkit_trunk":"http://svn.webkit.org/repository/'
       'webkit/trunk","googlecode_url":"http://%s.googlecode.com/svn",},},]',
       '_____ src at 61624',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/platform/chromium-win/storage/domstorage '
       '--revision 69168\' in \'.../build\'',
       'At revision 69168.',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/fast/events '
       '--revision 69168\' in \'.../build\'',
       'At revision 69168.',
       '________ running \'svn update .../build/src/third_party/WebKit'
       ' --revision 69168\' in \'.../build\'',
       'At revision 69168.',
       '________ running \'/usr/bin/python src/build/'
       'gyp_chromium\' in \'.../build\'',
       'Updating projects from gyp files...',
       'Generating .../build/src/sandbox/sandbox.Makefile'],
       untangle(stdout_lines))
Exemple #2
0
 def testUntangle_UpToDoubleDigits(self):
     stdout_lines = [
         '4>four', '9>nine', '1>one', '6>six', '3>three', '10>ten',
         '7>seven', '5>five', '8>eight', '2>two'
     ]
     self.assertEqual([
         'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
         'nine', 'ten'
     ], untangle(stdout_lines))
 def testUntangle_GClientSyncForDepsTrybot(self):
   stdout_lines = GCLIENT_SYNC_MULTI_JOB_DEPS_TRY_STDOUT.splitlines(False)
   self.assertEqual([
       '.../build/src/DEPS',
       '________ running \'svn update --revision BASE\' in \'.../build/src\'',
       'Restored \'DEPS\'',
       'At revision 61624.',
       'Syncing projects:  76% (46/60)',
       '________ running \'svn update --revision BASE\' '
       'in \'.../build/src/third_party/WebKit\'',
       'At revision 12345.',
       'Syncing projects: 100% (60/60)',
       'Syncing projects: 100% (60/60), done.',
       'solutions=[{"name":"src","url":"http://src.chromium.org/svn/'
       'trunk/src","custom_deps":{"src/webkit/data/layout_tests/'
       'LayoutTests":None,"src/third_party/WebKit/LayoutTests":None,},'
       '"custom_vars":{"webkit_trunk":"http://svn.webkit.org/repository/'
       'webkit/trunk","googlecode_url":"http://%s.googlecode.com/svn",},},]',
       '_____ src at 61624',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/platform/chromium-win/storage/domstorage '
       '--revision 69169\' in \'.../build\'',
       'At revision 69169.',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/fast/events --revision 69169\' '
       'in \'.../build\'',
       'At revision 69169.',
       '________ running \'svn update .../build/src/third_party/WebKit/'
       ' --revision 69169\' in \'.../build\'',
       'At revision 69169.',
       '________ running \'/usr/bin/python src/build/'
       'gyp_chromium\' in \'.../build\'',
       'Updating projects from gyp files...',
       'Generating .../build/src/sandbox/sandbox.Makefile',
       'patching file DEPS',
       'solutions=[{"name":"src","url":"http://src.chromium.org/svn/'
       'trunk/src","custom_deps":{"src/webkit/data/layout_tests/'
       'LayoutTests":None,"src/third_party/WebKit/LayoutTests":None,},'
       '"custom_vars":{"webkit_trunk":"http://svn.webkit.org/repository/'
       'webkit/trunk","googlecode_url":"http://%s.googlecode.com/svn",},},]',
       '_____ src at 61624',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/platform/chromium-win/storage/domstorage '
       '--revision 69168\' in \'.../build\'',
       'At revision 69168.',
       '________ running \'svn update .../build/src/chrome/test/data/'
       'layout_tests/LayoutTests/fast/events '
       '--revision 69168\' in \'.../build\'',
       'At revision 69168.',
       '________ running \'svn update .../build/src/third_party/WebKit'
       ' --revision 69168\' in \'.../build\'',
       'At revision 69168.',
       '________ running \'/usr/bin/python src/build/'
       'gyp_chromium\' in \'.../build\'',
       'Updating projects from gyp files...',
       'Generating .../build/src/sandbox/sandbox.Makefile'],
       untangle(stdout_lines))
Exemple #4
0
 def testUntangle_GClientSync(self):
     stdout_lines = GCLIENT_SYNC_MULTI_JOB_STDOUT.splitlines(False)
     self.assertEqual([
         'solutions=[...]', '_____ src at 59820',
         '_____ src/chrome/test/data/layout_tests/LayoutTests/'
         'platform/chromium-win/storage/domstorage at 67701',
         '_____ src/chrome/test/data/layout_tests/LayoutTests/'
         'fast/events at 67701',
         '_____ src/chrome/test/data/layout_tests/LayoutTests/'
         'fast/workers at 67701', '_____ src/breakpad/src at 692',
         '_____ src/third_party/ots at 35',
         '_____ src/third_party/libvpx/lib at 59445', '...'
     ], untangle(stdout_lines))
Exemple #5
0
 def testUntangle_MultiplesAndUnMatchingLines(self):
     stdout_lines = [
         'unmatching (solutions...)', '1>first set, first 1',
         '2>first set, first 2', '2>first set, second 2',
         '1>first set, second 1', 'unmatching (patching file...)',
         'unmatching (solutions again...)', '2>second set, first 2',
         '1>second set, first 1', '1>second set, second 1'
     ]
     self.assertEqual([
         'unmatching (solutions...)', 'first set, first 1',
         'first set, second 1', 'first set, first 2', 'first set, second 2',
         'unmatching (patching file...)', 'unmatching (solutions again...)',
         'second set, first 1', 'second set, second 1',
         'second set, first 2'
     ], untangle(stdout_lines))
 def testUntangle_GClientSync(self):
   stdout_lines = GCLIENT_SYNC_MULTI_JOB_STDOUT.splitlines(False)
   self.assertEqual([
       'solutions=[...]',
       '_____ src at 59820',
       '_____ src/chrome/test/data/layout_tests/LayoutTests/'
       'platform/chromium-win/storage/domstorage at 67701',
       '_____ src/chrome/test/data/layout_tests/LayoutTests/'
       'fast/events at 67701',
       '_____ src/chrome/test/data/layout_tests/LayoutTests/'
       'fast/workers at 67701',
       '_____ src/breakpad/src at 692',
       '_____ src/third_party/ots at 35',
       '_____ src/third_party/libvpx/lib at 59445',
       '...'], untangle(stdout_lines))
 def testUntangle_MultiplesAndUnMatchingLines(self):
   stdout_lines = ['unmatching (solutions...)',
                   '1>first set, first 1',
                   '2>first set, first 2',
                   '2>first set, second 2',
                   '1>first set, second 1',
                   'unmatching (patching file...)',
                   'unmatching (solutions again...)',
                   '2>second set, first 2',
                   '1>second set, first 1',
                   '1>second set, second 1']
   self.assertEqual(['unmatching (solutions...)',
                     'first set, first 1',
                     'first set, second 1',
                     'first set, first 2',
                     'first set, second 2',
                     'unmatching (patching file...)',
                     'unmatching (solutions again...)',
                     'second set, first 1',
                     'second set, second 1',
                     'second set, first 2'],
                    untangle(stdout_lines))
 def testUntangle_UpToDoubleDigits(self):
   stdout_lines = ['4>four', '9>nine', '1>one', '6>six', '3>three',
                   '10>ten', '7>seven', '5>five', '8>eight', '2>two']
   self.assertEqual(['one', 'two', 'three', 'four', 'five',
                     'six', 'seven', 'eight', 'nine', 'ten'],
                    untangle(stdout_lines))