bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | 466,000 |
def _WaitForCompletion(self, spawned_tests): """Waits for tests to complete and returns a list of failed tests. | def _WaitForCompletion(self, spawned_tests): """Waits for tests to complete and returns a list of failed tests. | 466,001 |
def _WaitForCompletion(self, spawned_tests): """Waits for tests to complete and returns a list of failed tests. | def _WaitForCompletion(self, spawned_tests): """Waits for tests to complete and returns a list of failed tests. | 466,002 |
def main(): usage = 'Usage: %prog [options] tests...' parser = optparse.OptionParser(usage=usage) (options, args) = parser.parse_args() if not args: parser.print_help() Die('no tests provided') runner = ParallelTestRunner(args) runner.Run() | def main(): usage = 'Usage: %prog [options] tests...' parser = optparse.OptionParser(usage=usage) (options, args) = parser.parse_args() if not args: parser.print_help() Die('no tests provided') runner = ParallelTestRunner(args, options.results_dir_root) runner.Run() | 466,003 |
def testPushChange(self): git_log = 'Marking test_one as stable\nMarking test_two as stable\n' fake_description = 'Marking set of ebuilds as stable\n\n%s' % git_log self.mox.StubOutWithMock(cros_mark_as_stable, '_CheckOnStabilizingBranch') self.mox.StubOutWithMock(cros_mark_as_stable.GitBranch, 'CreateBranch') self.mox... | def testPushChange(self): git_log = 'Marking test_one as stable\nMarking test_two as stable\n' fake_description = 'Marking set of ebuilds as stable\n\n%s' % git_log self.mox.StubOutWithMock(cros_mark_as_stable, '_CheckOnStabilizingBranch') self.mox.StubOutWithMock(cros_mark_as_stable.GitBranch, 'CreateBranch') self.mox... | 466,004 |
def UploadPrebuilt(build_path, bucket, version, board=None, git_sync=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. bucket: The Google Storage bucket to upload to. board: The board to upload to Google Storage, if this is None upload host packages. g... | def UploadPrebuilt(build_path, bucket, version, board=None, git_sync=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. bucket: The Google Storage bucket to upload to. board: The board to upload to Google Storage, if this is None upload host packages. g... | 466,005 |
def GenerateUploadDict(base_local_path, base_remote_path, pkgs): """Build a dictionary of local remote file key pairs to upload. Args: base_local_path: The base path to the files on the local hard drive. remote_path: The base path to the remote paths. pkgs: The packages to upload. Returns: Returns a dictionary of loc... | def GenerateUploadDict(base_local_path, base_remote_path, pkgs): """Build a dictionary of local remote file key pairs to upload. Args: base_local_path: The base path to the files on the local hard drive. remote_path: The base path to the remote paths. pkgs: The packages to upload. Returns: Returns a dictionary of loc... | 466,006 |
def UploadPrebuilt(build_path, upload_location, version, binhost_base_url, board=None, git_sync=False, git_sync_retries=5, key='PORTAGE_BINHOST', pkg_indexes=[], sync_binhost_conf=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. upload_location: The u... | def UploadPrebuilt(build_path, upload_location, version, binhost_base_url, board=None, git_sync=False, git_sync_retries=5, key='PORTAGE_BINHOST', pkg_indexes=[], sync_binhost_conf=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. upload_location: The u... | 466,007 |
def UploadPrebuilt(build_path, upload_location, version, binhost_base_url, board=None, git_sync=False, git_sync_retries=5, key='PORTAGE_BINHOST', pkg_indexes=[], sync_binhost_conf=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. upload_location: The u... | def UploadPrebuilt(build_path, upload_location, version, binhost_base_url, board=None, git_sync=False, git_sync_retries=5, key='PORTAGE_BINHOST', pkg_indexes=[], sync_binhost_conf=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. upload_location: The u... | 466,008 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,009 |
def testRevEBuild(self): self.mox.StubOutWithMock(cros_mark_as_stable.fileinput, 'input') self.mox.StubOutWithMock(cros_mark_as_stable.shutil, 'copyfile') m_file = self.mox.CreateMock(file) | def testRevEBuild(self): self.mox.StubOutWithMock(cros_mark_as_stable.fileinput, 'input') self.mox.StubOutWithMock(cros_mark_as_stable.shutil, 'copyfile') m_file = self.mox.CreateMock(file) | 466,010 |
def MarkChromeEBuildAsStable(stable_candidate, unstable_ebuild, chrome_rev, chrome_version, commit, overlay_dir, sticky_ebuild): """Uprevs the chrome ebuild specified by chrome_rev. This is the main function that uprevs the chrome_rev from a stable candidate to its new version. Args: stable_candidate: ebuild that cor... | def MarkChromeEBuildAsStable(stable_candidate, unstable_ebuild, chrome_rev, chrome_version, commit, overlay_dir, sticky_ebuild): """Uprevs the chrome ebuild specified by chrome_rev. This is the main function that uprevs the chrome_rev from a stable candidate to its new version. Args: stable_candidate: ebuild that cor... | 466,011 |
def testTotMarkAsStable(self): """Tests to see if we can mark chrome for tot.""" self._CommonMarkAsStableTest(cros_mark_chrome_as_stable.TIP_OF_TRUNK, self.tot_new_version, self.tot_stable, self.tot_new, 'tot') | def testTotMarkAsStable(self): """Tests to see if we can mark chrome for tot.""" self._CommonMarkAsStableTest(cros_mark_chrome_as_stable.TIP_OF_TRUNK, self.tot_new_version, self.tot_stable, self.tot_new, 'tot') | 466,012 |
def testUprevPackages(self): self.mox.StubOutWithMock(cbuildbot, '_CreateRepoDictionary') self.mox.StubOutWithMock(cbuildbot, '_ParseRevisionString') self.mox.StubOutWithMock(cbuildbot, '_UprevFromRevisionList') self.mox.StubOutWithMock(__builtin__, 'open') | def testUprevPackages(self): """Test if we get actual revisions in revisions.pfq.""" self.mox.StubOutWithMock(__builtin__, 'open') | 466,013 |
def testUprevPackages(self): self.mox.StubOutWithMock(cbuildbot, '_CreateRepoDictionary') self.mox.StubOutWithMock(cbuildbot, '_ParseRevisionString') self.mox.StubOutWithMock(cbuildbot, '_UprevFromRevisionList') self.mox.StubOutWithMock(__builtin__, 'open') | def testUprevPackages(self): self.mox.StubOutWithMock(cbuildbot, '_CreateRepoDictionary') self.mox.StubOutWithMock(cbuildbot, '_ParseRevisionString') self.mox.StubOutWithMock(cbuildbot, '_UprevFromRevisionList') self.mox.StubOutWithMock(__builtin__, 'open') | 466,014 |
def PrepareBase(self): """Creates an update-able VM based on base image.""" | def PrepareBase(self): """Creates an update-able VM based on base image.""" | 466,015 |
def PrepareBase(self): """Creates an update-able VM based on base image.""" | def PrepareBase(self): """Creates an update-able VM based on base image.""" | 466,016 |
def PrepareBase(self): """Creates an update-able VM based on base image.""" | def PrepareBase(self): """Creates an update-able VM based on base image.""" | 466,017 |
def VerifyImage(self, percent_required_to_pass): """Runs vm smoke suite to verify image.""" # image_to_live already verifies lsb-release matching. This is just # for additional steps. output = RunCommand(['%s/cros_run_vm_test' % self.crosutilsbin, '--image_path=%s' % self.vm_image_path, '--snapshot', '--persist', vm_g... | defif options.quick_test: _VERIFY_SUITE = 'build_RootFilesystemSize' VerifyImage(self,if options.quick_test: _VERIFY_SUITE = 'build_RootFilesystemSize' percent_required_to_pass):if options.quick_test: _VERIFY_SUITE = 'build_RootFilesystemSize' """Runsif options.quick_test: _VERIFY_SUITE = 'build_RootFilesystemSize' vmi... | 466,018 |
def setUp(self): self.utf8 = "<?xml version='1.0' encoding='UTF-8'?>\n" self.tiny_manifest = '<manifest>\n</manifest>' | def setUp(self): self.utf8 = "<?xml version='1.0' encoding='UTF-8'?>\n" self.tiny_manifest = '<manifest>\n</manifest>' | 466,019 |
def testSimpleParse(self): ptree = loman.LocalManifest() ptree.Parse() | def testSimpleParse(self): ptree = loman.LocalManifest() ptree.Parse() | 466,020 |
def testParse(self): ptree = loman.LocalManifest(self.tiny_manifest) ptree.Parse() self.assertEqual(ptree.ToString(), self.utf8 + self.tiny_manifest) | def testParse(self): ptree = loman.LocalManifest(self.tiny_manifest) ptree.Parse() self.assertEqual(ptree.ToString(), self.utf8 + self.tiny_manifest) | 466,021 |
def testUTF8Parse(self): ptree = loman.LocalManifest(self.utf8 + self.tiny_manifest) ptree.Parse() self.assertEqual(ptree.ToString(), self.utf8 + self.tiny_manifest) | def testUTF8Parse(self): ptree = loman.LocalManifest(self.utf8 + self.tiny_manifest) ptree.Parse() self.assertEqual(ptree.ToString(), self.utf8 + self.tiny_manifest) | 466,022 |
def testAddNew(self): ptree = loman.LocalManifest('<manifest>\n</manifest>') ptree.Parse() self.assertTrue(ptree.AddWorkonProject('foo', 'path/to/foo')) self.assertEqual( ptree.ToString(), self.utf8 + '<manifest>\n' '<project name="foo" path="path/to/foo" workon="True" />\n' '</manifest>') | def testAddNew(self): ptree = loman.LocalManifest('<manifest>\n</manifest>') ptree.Parse() self.assertTrue(ptree.AddWorkonProject('foo', 'path/to/foo')) self.assertEqual( ptree.ToString(), self.utf8 + '<manifest>\n' '<project name="foo" path="path/to/foo" workon="True" />\n' '</manifest>') | 466,023 |
def testAddDup(self): ptree = loman.LocalManifest('<manifest>\n</manifest>') ptree.Parse() ptree.AddWorkonProject('foo', 'path/to/foo') self.assertTrue(not ptree.AddWorkonProject('foo', 'path/to/foo')) self.assertTrue(not ptree.AddWorkonProject('foo', 'path/foo')) self.assertTrue(not ptree.AddWorkonProject('foobar', 'p... | def testAddDup(self): ptree = loman.LocalManifest('<manifest>\n</manifest>') ptree.Parse() ptree.AddWorkonProject('foo', 'path/to/foo') self.assertTrue(not ptree.AddWorkonProject('foo', 'path/to/foo')) self.assertTrue(not ptree.AddWorkonProject('foo', 'path/foo')) self.assertTrue(not ptree.AddWorkonProject('foobar', 'p... | 466,024 |
def testAddDup(self): ptree = loman.LocalManifest('<manifest>\n</manifest>') ptree.Parse() ptree.AddWorkonProject('foo', 'path/to/foo') self.assertTrue(not ptree.AddWorkonProject('foo', 'path/to/foo')) self.assertTrue(not ptree.AddWorkonProject('foo', 'path/foo')) self.assertTrue(not ptree.AddWorkonProject('foobar', 'p... | def testAddDup(self): ptree = loman.LocalManifest('<manifest>\n</manifest>') ptree.Parse() ptree.AddWorkonProject('foo', 'path/to/foo') self.assertTrue(not ptree.AddWorkonProject('foo', 'path/to/foo')) self.assertTrue(not ptree.AddWorkonProject('foo', 'path/foo')) self.assertTrue(not ptree.AddWorkonProject('foobar', 'p... | 466,025 |
def setUp(self): self.utf8 = "<?xml version='1.0' encoding='UTF-8'?>\n" self.tiny_manifest = '<manifest>\n</manifest>' self.stderr = sys.stderr sys.stderr = StringIO.StringIO() | def setUp(self): self.utf8 = "<?xml version='1.0' encoding='UTF-8'?>\n" self.tiny_manifest = '<manifest>\n</manifest>' self.stderr = sys.stderr sys.stderr = StringIO.StringIO() | 466,026 |
def tearDown(self): sys.stderr = self.stderr | def tearDown(self): sys.stderr = self.stderr | 466,027 |
def testNotEnoughArgs(self): err_msg = 'Not enough arguments\n' self.assertRaises(SystemExit, loman.main, ['loman']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | def testNotEnoughArgs(self): err_msg = 'Not enough arguments\n' self.assertRaises(SystemExit, loman.main, ['loman']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | 466,028 |
def testNotWorkon(self): err_msg = 'Adding of non-workon projects is currently unsupported.\n' self.assertRaises(SystemExit, loman.main, ['loman', 'add', 'foo', 'path']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | def testNotWorkon(self): err_msg = 'Adding of non-workon projects is currently unsupported.\n' self.assertRaises(SystemExit, loman.main, ['loman', 'add', 'foo', 'path']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | 466,029 |
def testBadCommand(self): err_msg = 'Unsupported command: bad.\n' self.assertRaises(SystemExit, loman.main, ['loman', 'bad', 'foo', 'path']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | def testBadCommand(self): err_msg = 'Unsupported command: bad.\n' self.assertRaises(SystemExit, loman.main, ['loman', 'bad', 'foo', 'path']) self.assertTrue(sys.stderr.getvalue().endswith(err_msg)) | 466,030 |
def testAddDup(self): temp = tempfile.NamedTemporaryFile('w') print >> temp, '<manifest>\n</manifest>' temp.flush() os.fsync(temp.fileno()) loman.main(['loman', 'add', '--workon', '-f', temp.name, 'foo', 'path/to/foo']) self.assertRaises(SystemExit, loman.main, ['loman', 'add', '--workon', '-f', temp.name, 'foo', 'path... | def testAddDup(self): temp = tempfile.NamedTemporaryFile('w') print >> temp, '<manifest>\n</manifest>' temp.flush() os.fsync(temp.fileno()) loman.main(['loman', 'add', '--workon', '-f', temp.name, 'foo', 'path/to/foo']) self.assertRaises(SystemExit, loman.main, ['loman', 'add', '--workon', '-f', temp.name, 'foo', 'path... | 466,031 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,032 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-a', '--acl', default='private', help='ACL to set on GSD archives') parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-a', '--acl', default='private', help='ACL to set on GSD archives') parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option... | 466,033 |
def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split(':') _CheckSaneArguments(package_list, command) if gflags.FLAGS.overlays: overla... | def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split(':') _CheckSaneArguments(package_list, command) if gflags.FLAGS.overlays: overla... | 466,034 |
def UploadPrebuilt(build_path, upload_location, version, binhost_base_url, board=None, git_sync=False, git_sync_retries=5, key='PORTAGE_BINHOST', pkg_indexes=[], sync_binhost_conf=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. upload_location: The u... | def UploadPrebuilt(build_path, upload_location, version, binhost_base_url, board=None, git_sync=False, git_sync_retries=5, key='PORTAGE_BINHOST', pkg_indexes=[], sync_binhost_conf=False): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. upload_location: The u... | 466,035 |
def _FindEBuildPath(cls, package): """Static method that returns the full path of an ebuild.""" _Print('Looking for unstable ebuild for %s' % package) equery_cmd = 'equery-%s which %s 2> /dev/null' \ % (gflags.FLAGS.board, package) path = _SimpleRunCommand(equery_cmd) if path: _Print('Unstable ebuild found at %s' % pat... | def _FindEBuildPath(cls, package): """Static method that returns the full path of an ebuild.""" _Print('Looking for unstable ebuild for %s' % package) equery_cmd = ( 'ACCEPT_KEYWORDS="x86 arm amd64" equery-%s which %s 2> /dev/null' % (gflags.FLAGS.board, package)) path = _SimpleRunCommand(equery_cmd) if path: _Print('U... | 466,036 |
def _RunSmokeSuite(buildroot): cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['bin/cros_run_vm_test', '--no_graphics', '--test_case', 'suite_Smoke', ], cwd=cwd, error_ok=True) | def _RunSmokeSuite(buildroot): cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['bin/cros_run_vm_test', '--no_graphics', '--test_case', 'suite_Smoke', ], cwd=cwd, error_ok=False) | 466,037 |
def __init__(self, tests, base_ssh_port=_DEFAULT_BASE_SSH_PORT, board=None, image_path=None, results_dir_root=None): """Constructs and initializes the test runner class. | def __init__(self, tests, base_ssh_port=_DEFAULT_BASE_SSH_PORT, board=None, image_path=None, order_output=False, results_dir_root=None): """Constructs and initializes the test runner class. | 466,038 |
def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | 466,039 |
def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | 466,040 |
def main(): usage = 'Usage: %prog [options] tests...' parser = optparse.OptionParser(usage=usage) parser.add_option('--base_ssh_port', type='int', default=_DEFAULT_BASE_SSH_PORT, help='Base SSH port. Spawned VMs listen to localhost SSH ' 'ports incrementally allocated starting from the base one. ' '[default: %default]'... | def main(): usage = 'Usage: %prog [options] tests...' parser = optparse.OptionParser(usage=usage) parser.add_option('--base_ssh_port', type='int', default=_DEFAULT_BASE_SSH_PORT, help='Base SSH port. Spawned VMs listen to localhost SSH ' 'ports incrementally allocated starting from the base one. ' '[default: %default]'... | 466,041 |
def setUp(self): unittest.TestCase.setUp(self) # Set these up as they are used often. self.crosutils = os.path.join(os.path.dirname(__file__), '..') self.crosutilsbin = os.path.join(os.path.dirname(__file__)) self.download_folder = os.path.join(self.crosutilsbin, 'latest_download') | def setUp(self): unittest.TestCase.setUp(self) # Set these up as they are used often. self.crosutils = os.path.join(os.path.dirname(__file__), '..') self.crosutilsbin = os.path.join(os.path.dirname(__file__)) self.download_folder = os.path.join(self.crosutilsbin, 'latest_download') | 466,042 |
def _UpdateImageReportError(self, image_path, stateful_change='old'): """Calls UpdateImage and reports any error to the console. Still throws the exception. """ try: self.UpdateImage(image_path, stateful_change) except UpdateException as err: # If the update fails, print it out Warning(err.stdout) raise | def _UpdateImageReportError(self, image_path, stateful_change='old'): """Calls UpdateImage and reports any error to the console. Still throws the exception. """ try: self.UpdateImage(image_path, stateful_change) except UpdateException as err: # If the update fails, print it out Warning(err.stdout) raise | 466,043 |
def PrepareBase(self, image_path): """Creates an update-able VM based on base image.""" self.vm_image_path = '%s/chromiumos_qemu_image.bin' % os.path.dirname( image_path) Info('Creating: %s' % self.vm_image_path) | def PrepareBase(self, image_path): """Creates an update-able VM based on base image.""" self.vm_image_path = '%s/chromiumos_qemu_image.bin' % os.path.dirname( image_path) Info('Creating: %s' % self.vm_image_path) | 466,044 |
def BuildStateful(self, src, dst): """Create a stateful partition update image.""" | def BuildStateful(self, src, dst_dir, dst_file): """Create a stateful partition update image.""" | 466,045 |
def BuildStateful(self, src, dst): """Create a stateful partition update image.""" | def BuildStateful(self, src, dst): """Create a stateful partition update image.""" | 466,046 |
def BuildStateful(self, src, dst): """Create a stateful partition update image.""" | def BuildStateful(self, src, dst): """Create a stateful partition update image.""" | 466,047 |
def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | 466,048 |
def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | 466,049 |
def RunPipe(self, pipeline, infile=None, outfile=None, capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames.""" | def RunPipe(self, pipeline, infile=None, outfile=None, capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames.""" | 466,050 |
def RunPipe(self, pipeline, infile=None, outfile=None, capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames.""" | def RunPipe(self, pipeline, infile=None, outfile=None, capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames.""" | 466,051 |
def __init__(self, verbose=False): self.cros_root = os.path.dirname(os.path.abspath(sys.argv[0])) parent = os.path.dirname(self.cros_root) if os.path.exists(os.path.join(parent, 'chromeos-common.sh')): self.cros_root = parent self.cmd = Command(self) self.verbose = verbose | SILENT = 0 INFO = 1 DEBUG = 2 def __init__(self, verbose=SILENT): self.cros_root = os.path.dirname(os.path.abspath(sys.argv[0])) parent = os.path.dirname(self.cros_root) if os.path.exists(os.path.join(parent, 'chromeos-common.sh')): self.cros_root = parent self.cmd = Command(self) self.verbose = verbose | 466,052 |
def Info(self, msg): if self.verbose: print 'INFO: %s' % msg | def Info(self, msg): if self.verbose >= CrosEnv.INFO: print 'INFO: %s' % msg | 466,053 |
def CreateServer(self, port, update_file, stateful_file): """Start the devserver clone.""" | def CreateServer(self, port, update_file, stateful_file): """Start the devserver clone.""" | 466,054 |
def CreateServer(self, port, update_file, stateful_file): """Start the devserver clone.""" | def CreateServer(self, port, update_file, stateful_file): """Start the devserver clone.""" | 466,055 |
def StartClient(self, port): """Ask the client machine to update from our server.""" | def StartClient(self, port): """Ask the client machine to update from our server.""" | 466,056 |
def Reply(self, handler, send_content=True, post_data=None): handler.send_Error(404, 'File not found') return None | def Reply(self, handler, send_content=True, post_data=None): handler.send_error(404, 'File not found') return None | 466,057 |
def __init__(self, filename, content_type='application/octet-stream', verbose=False, blocksize=16*1024): self.filename = filename self.content_type = content_type self.verbose = verbose self.blocksize = blocksize | def __init__(self, filename, content_type='application/octet-stream', verbose=False, blocksize=16*1024, have_pv=False): self.filename = filename self.content_type = content_type self.verbose = verbose self.blocksize = blocksize | 466,058 |
def Reply(self, handler, send_content=True, post_data=None): """Return file contents to the client. Optionally display progress.""" | def Reply(self, handler, send_content=True, post_data=None): """Return file contents to the client. Optionally display progress.""" | 466,059 |
def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | 466,060 |
def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | 466,061 |
def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | def main(argv): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) parser.add_option('--board', dest='board', default=None, help='Board platform type') parser.add_option('--force-mismatch', dest='force_mismatch', default=False, action='store_true', help='Upgrade even if client arch does not ma... | 466,062 |
def _FullCheckout(buildroot): MakeDir(buildroot, parents=True) RunCommand(['repo', 'init', '-u', 'http://src.chromium.org/git/manifest'], cwd=buildroot, input='\n\ny\n') RunCommand(['repo', 'sync'], cwd=buildroot) RunCommand(['repo', 'forall', '-c', 'git', 'config', 'url.ssh://gitrw.chromium.org.pushinsteadof', 'http:/... | def _FullCheckout(buildroot): MakeDir(buildroot, parents=True) RunCommand(['repo', 'init', '-u', 'http://src.chromium.org/git/manifest'], cwd=buildroot, input='\n\ny\n') RunCommand(['repo', 'sync'], cwd=buildroot) RunCommand(['repo', 'forall', '-c', 'git', 'config', 'url.ssh://git@gitrw.chromium.org:9222.pushinsteadof'... | 466,063 |
def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | 466,064 |
def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | def _SpawnTests(self): """Spawns VMs and starts the test runs on them. | 466,065 |
def RepoSync(buildroot, retries=_DEFAULT_RETRIES): """Uses repo to checkout the source code. Keyword arguments: retries -- Number of retries to try before failing on the sync. """ while retries > 0: try: # The --trace option ensures that repo shows the output from git. This # is needed so that the buildbot can kill us... | def RepoSync(buildroot, retries=_DEFAULT_RETRIES): """Uses repo to checkout the source code. Keyword arguments: retries -- Number of retries to try before failing on the sync. """ while retries > 0: try: # The --trace option ensures that repo shows the output from git. This # is needed so that the buildbot can kill us... | 466,066 |
def _Build(buildroot): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./build_packages'], cwd=cwd, enter_chroot=True) | def _Build(buildroot, emptytree): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./build_packages'], cwd=cwd, enter_chroot=True) | 466,067 |
def _Build(buildroot): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./build_packages'], cwd=cwd, enter_chroot=True) | def _Build(buildroot): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') cmd = ['./build_packages'] if emptytree: cmd.insert(0, 'EXTRA_BOARD_FLAGS=--emptytree') RunCommand(cmd, cwd=cwd, enter_chroot=True) | 466,068 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,069 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,070 |
def _KillExistingVM(self, pid_file): if os.path.exists(pid_file): Warning('Existing %s found. Deleting and killing process' % pid_file) pid = RunCommand(['sudo', 'cat', pid_file], redirect_stdout=True, enter_chroot=False) if pid: RunCommand(['sudo', 'kill', pid.strip()], error_ok=True, enter_chroot=False) RunCommand([... | def _KillExistingVM(self, pid_file): if os.path.exists(pid_file): Warning('Existing %s found. Deleting and killing process' % pid_file) pid = RunCommand(['sudo', 'cat', pid_file], redirect_stdout=True, enter_chroot=False) if pid: RunCommand(['sudo', 'kill', pid.strip()], error_ok=True, enter_chroot=False) RunCommand([... | 466,071 |
def _PreFlightRinse(buildroot): """Cleans up any leftover state from previous runs.""" RunCommand(['sudo', 'killall', 'kvm'], error_ok=True) _UprevCleanup(buildroot, error_ok=True) | def _PreFlightRinse(buildroot): """Cleans up any leftover state from previous runs.""" RunCommand(['sudo', 'killall', 'kvm'], error_ok=True) _UprevCleanup(buildroot, error_ok=True) | 466,072 |
def _Build(buildroot): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./build_packages'], cwd=cwd, enter_chroot=True) | def _Build(buildroot): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./build_packages'], cwd=cwd, enter_chroot=True) | 466,073 |
def _UprevPackages(buildroot, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisions to uprev. """ ... | def _UprevPackages(buildroot, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisions to uprev. """ ... | 466,074 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,075 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,076 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,077 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,078 |
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | 466,079 |
def main(): parser = optparse.OptionParser() parser.add_option('-b', '--board', help='board for the image to compare against.') parser.add_option('-c', '--channel', help='channel for the image to compare against.') parser.add_option('-l', '--latestbase', help='Base url for latest links.') parser.add_option('-z', '--zip... | def main(): parser = optparse.OptionParser() parser.add_option('-b', '--board', help='board for the image to compare against.') parser.add_option('-c', '--channel', help='channel for the image to compare against.') parser.add_option('-l', '--latestbase', help='Base url for latest links.') parser.add_option('-z', '--zip... | 466,080 |
def _FullCheckout(buildroot, rw_checkout=True, retries=_DEFAULT_RETRIES): """Performs a full checkout and clobbers any previous checkouts.""" RunCommand(['sudo', 'rm', '-rf', buildroot]) MakeDir(buildroot, parents=True) RunCommand(['repo', 'init', '-u', 'http://src.chromium.org/git/manifest'], cwd=buildroot, input='\n\... | def _FullCheckout(buildroot, rw_checkout=True, retries=_DEFAULT_RETRIES): """Performs a full checkout and clobbers any previous checkouts.""" RunCommand(['sudo', 'rm', '-rf', buildroot]) MakeDir(buildroot, parents=True) RunCommand(['repo', 'init', '-u', 'http://git.chromium.org/git/manifest'], cwd=buildroot, input='\n\... | 466,081 |
def GetLatestZipUrl(board, channel, latest_url_base, zip_server_base): """Returns the url of the latest image zip for the given arguments. Args: board: board for the image zip. channel: channel for the image zip. latest_url_base: base url for latest links. zip_server_base: base url for zipped images. """ if latest_ur... | def GetLatestZipUrl(board, channel, latest_url_base, zip_server_base): """Returns the url of the latest image zip for the given arguments. Args: board: board for the image zip. channel: channel for the image zip. latest_url_base: base url for latest links. zip_server_base: base url for zipped images. """ if latest_ur... | 466,082 |
def RepoSync(buildroot, rw_checkout=False, retries=_DEFAULT_RETRIES): """Uses repo to checkout the source code. Keyword arguments: rw_checkout -- Reconfigure repo after sync'ing to read-write. retries -- Number of retries to try before failing on the sync. """ # Get the number of processors to use with repo sync. num... | def RepoSync(buildroot, rw_checkout=False, retries=_DEFAULT_RETRIES): """Uses repo to checkout the source code. Keyword arguments: rw_checkout -- Reconfigure repo after sync'ing to read-write. retries -- Number of retries to try before failing on the sync. """ # Get the number of processors to use with repo sync.whil... | 466,083 |
def RepoSync(buildroot, rw_checkout=False, retries=_DEFAULT_RETRIES): """Uses repo to checkout the source code. Keyword arguments: rw_checkout -- Reconfigure repo after sync'ing to read-write. retries -- Number of retries to try before failing on the sync. """ # Get the number of processors to use with repo sync. num... | def RepoSync(buildroot, rw_checkout=False, retries=_DEFAULT_RETRIES): """Uses repo to checkout the source code. Keyword arguments: rw_checkout -- Reconfigure repo after sync'ing to read-write. retries -- Number of retries to try before failing on the sync. """ # Get the number of processors to use with repo sync. num... | 466,084 |
def Authenticate(): default_username = getpass.getuser() username = os.environ.get('GSDCURL_USERNAME') if username is None: sys.stderr.write('Username [' + default_username + ']: ') username = raw_input() if username == '': username = default_username + '@google.com' elif '@' not in username: username = username + '@go... | def Authenticate(): default_username = getpass.getuser() username = os.environ.get('GSDCURL_USERNAME') if username is None: sys.stderr.write('Username [' + default_username + ']: ') username = raw_input() if username == '': username = default_username + '@google.com' elif '@' not in username: username = username + '@go... | 466,085 |
def Authenticate(): default_username = getpass.getuser() username = os.environ.get('GSDCURL_USERNAME') if username is None: sys.stderr.write('Username [' + default_username + ']: ') username = raw_input() if username == '': username = default_username + '@google.com' elif '@' not in username: username = username + '@go... | def Authenticate(): default_username = getpass.getuser() username = os.environ.get('GSDCURL_USERNAME') if username is None: sys.stderr.write('Username [' + default_username + ']: ') username = raw_input() if username == '': username = default_username + '@google.com' elif '@' not in username: username = username + '@go... | 466,086 |
def _Build(buildroot, emptytree): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') cmd = ['./build_packages'] if emptytree: cmd.insert(0, 'EXTRA_BOARD_FLAGS=--emptytree') RunCommand(cmd, cwd=cwd, enter_chroot=True) | def _Build(buildroot, emptytree): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') if emptytree: cmd.insert(0, 'EXTRA_BOARD_FLAGS=--emptytree') RunCommand(cmd, cwd=cwd, enter_chroot=True) | 466,087 |
def _Build(buildroot, emptytree): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') cmd = ['./build_packages'] if emptytree: cmd.insert(0, 'EXTRA_BOARD_FLAGS=--emptytree') RunCommand(cmd, cwd=cwd, enter_chroot=True) | def _Build(buildroot, emptytree): """Wrapper around build_packages.""" cwd = os.path.join(buildroot, 'src', 'scripts') cmd = ['./build_packages'] if emptytree: cmd = ['sh', '-c', 'EXTRA_BOARD_FLAGS=--emptytree ./build_packages'] else: cmd = ['./build_packages'] RunCommand(cmd, cwd=cwd, enter_chroot=True) | 466,088 |
def _CleanStalePackages(board, package_array): """Cleans up stale package info from a previous build.""" Info('Cleaning up stale packages %s.' % package_array) unmerge_board_cmd = ['emerge-%s' % board, '--unmerge'] unmerge_board_cmd.extend(package_array) RunCommand(unmerge_board_cmd, env=env) unmerge_host_cmd = ['sudo... | def _CleanStalePackages(board, package_array): """Cleans up stale package info from a previous build.""" Info('Cleaning up stale packages %s.' % package_array) unmerge_board_cmd = ['emerge-%s' % board, '--unmerge'] unmerge_board_cmd.extend(package_array) RunCommand(unmerge_board_cmd) unmerge_host_cmd = ['sudo', 'emerg... | 466,089 |
def _CleanStalePackages(board, package_array): """Cleans up stale package info from a previous build.""" Info('Cleaning up stale packages %s.' % package_array) unmerge_board_cmd = ['emerge-%s' % board, '--unmerge'] unmerge_board_cmd.extend(package_array) RunCommand(unmerge_board_cmd, env=env) unmerge_host_cmd = ['sudo... | def _CleanStalePackages(board, package_array): """Cleans up stale package info from a previous build.""" Info('Cleaning up stale packages %s.' % package_array) unmerge_board_cmd = ['emerge-%s' % board, '--unmerge'] unmerge_board_cmd.extend(package_array) RunCommand(unmerge_board_cmd, env=env) unmerge_host_cmd = ['sudo... | 466,090 |
def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | 466,091 |
def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split() if gflags.FLAGS.commit_ids: commit_id_list = gflags.FLAGS.commit_ids.split() e... | def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split() if gflags.FLAGS.commit_ids: commit_id_list = gflags.FLAGS.commit_ids.split() e... | 466,092 |
def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split() if gflags.FLAGS.commit_ids: commit_id_list = gflags.FLAGS.commit_ids.split() e... | def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split() if gflags.FLAGS.commit_ids: commit_id_list = gflags.FLAGS.commit_ids.split() e... | 466,093 |
def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split() if gflags.FLAGS.commit_ids: commit_id_list = gflags.FLAGS.commit_ids.split() e... | def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split() if gflags.FLAGS.commit_ids: commit_id_list = gflags.FLAGS.commit_ids.split() e... | 466,094 |
def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | 466,095 |
def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o... | 466,096 |
def testRevEBuild(self): self.mox.StubOutWithMock(cros_mark_as_stable.fileinput, 'input') self.mox.StubOutWithMock(cros_mark_as_stable.shutil, 'copyfile') m_file = self.mox.CreateMock(file) | def testRevEBuild(self): self.mox.StubOutWithMock(cros_mark_as_stable.fileinput, 'input') self.mox.StubOutWithMock(cros_mark_as_stable.shutil, 'copyfile') m_file = self.mox.CreateMock(file) | 466,097 |
def testRevEBuild(self): self.mox.StubOutWithMock(cros_mark_as_stable.fileinput, 'input') self.mox.StubOutWithMock(cros_mark_as_stable.shutil, 'copyfile') m_file = self.mox.CreateMock(file) | def testRevEBuild(self): self.mox.StubOutWithMock(cros_mark_as_stable.fileinput, 'input') self.mox.StubOutWithMock(cros_mark_as_stable.shutil, 'copyfile') m_file = self.mox.CreateMock(file) | 466,098 |
def PushChange(stable_branch, tracking_branch): """Pushes commits in the stable_branch to the remote git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by current working directory. Args: stable_branch: The local branch with commits we want to push. tracking_branch... | def PushChange(stable_branch, tracking_branch): """Pushes commits in the stable_branch to the remote git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by current working directory. Args: stable_branch: The local branch with commits we want to push. tracking_branch... | 466,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.