def testNonExisting(self): """Erroring out on non-existent output dir.""" options = cros_gen.ParseCommandLine( ['--board', BOARD, '--out-dir', self.BAD_TARGET_DIR, '--package', constants.CHROME_CP]) self.assertRaises(cros_build_lib.DieSystemExit, cros_gen.FinishParsing, options)
def testMultiplePkgsTargetName(self): """Test getting the right target name with multiple pkgs.""" pkgs = "%s virtual/target-os" % constants.CHROME_CP options = cros_gen.ParseCommandLine( ['--board', BOARD, '--out-dir', self.tempdir, '--package', pkgs]) self.assertEquals(options.out_file, 'sysroot_chromeos-base_chromeos-chrome.tar.xz')
def _Parse(self, extra_args): return cros_gen.ParseCommandLine([ '--board', BOARD, '--out-dir', self.tempdir, '--package', constants.CHROME_CP ] + extra_args)