parent
b3bc4b6e85
commit
777fdeba28
2 changed files with 4 additions and 3 deletions
|
|
@ -2379,7 +2379,7 @@ def anon_handle_list_tagged(goptions, session, args):
|
|||
usage = _("usage: %prog list-tagged [options] tag [package]")
|
||||
usage += _("\n(Specify the --help global option for a list of other help options)")
|
||||
parser = OptionParser(usage=usage)
|
||||
parser.add_option("--arch", help=_("List rpms for this arch"))
|
||||
parser.add_option("--arch", action="append", default=[], help=_("List rpms for this arch"))
|
||||
parser.add_option("--rpms", action="store_true", help=_("Show rpms instead of builds"))
|
||||
parser.add_option("--inherit", action="store_true", help=_("Follow inheritance"))
|
||||
parser.add_option("--latest", action="store_true", help=_("Only show the latest builds/rpms"))
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ class TestCliListTagged(utils.CliTestCase):
|
|||
def test_list_tagged_rpms(self, activate_session_mock,
|
||||
event_from_opts_mock):
|
||||
args = ['tag', 'pkg', '--latest-n=3', '--rpms', '--sigs',
|
||||
'--arch=x86_64']
|
||||
'--arch=x86_64', '--arch=noarch']
|
||||
|
||||
anon_handle_list_tagged(self.options, self.session, args)
|
||||
activate_session_mock.assert_called_once_with(self.session,
|
||||
|
|
@ -99,7 +99,8 @@ class TestCliListTagged(utils.CliTestCase):
|
|||
inherit=None,
|
||||
latest=3,
|
||||
rpmsigs=True,
|
||||
arch='x86_64')
|
||||
arch=['x86_64',
|
||||
'noarch'])
|
||||
self.session.listTagged.assert_not_called()
|
||||
self.assert_console_message(sys.stdout,
|
||||
'sigkey rpmA-0.0.1-1.el6.noarch\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue