[createrepo] Use more verbose output
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
9f3408fec0
commit
4da77c5e5d
3 changed files with 7 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ class CreateRepoWrapperTest(unittest.TestCase):
|
|||
cmd = repo.get_createrepo_cmd('/test/dir')
|
||||
|
||||
self.assertEqual(cmd[:2], ['createrepo_c', '/test/dir'])
|
||||
self.assertItemsEqual(cmd[2:], ['--update', '--database', '--unique-md-filenames'])
|
||||
self.assertItemsEqual(cmd[2:], ['--verbose', '--update', '--database', '--unique-md-filenames'])
|
||||
|
||||
def test_get_createrepo_c_cmd_full(self):
|
||||
repo = CreaterepoWrapper()
|
||||
|
|
@ -40,14 +40,15 @@ class CreateRepoWrapperTest(unittest.TestCase):
|
|||
'--checksum=sha256', '--distro=Fedora', '--simple-md-filenames', '--no-database',
|
||||
'--content=c1', '--content=c2', '--repo=r1', '--repo=r2', '--revision=rev',
|
||||
'--deltas', '--oldpackagedirs=/test/old', '--num-deltas=2', '--workers=3',
|
||||
'--outputdir=/test/output'])
|
||||
'--outputdir=/test/output', '--verbose'])
|
||||
|
||||
def test_get_createrepo_cmd_minimal(self):
|
||||
repo = CreaterepoWrapper(False)
|
||||
cmd = repo.get_createrepo_cmd('/test/dir')
|
||||
|
||||
self.assertEqual(cmd[:2], ['createrepo', '/test/dir'])
|
||||
self.assertItemsEqual(cmd[2:], ['--update', '--database', '--unique-md-filenames', '--pretty'])
|
||||
self.assertItemsEqual(cmd[2:], ['--update', '--database', '--unique-md-filenames',
|
||||
'--pretty', '--verbose'])
|
||||
|
||||
def test_get_createrepo_cmd_full(self):
|
||||
repo = CreaterepoWrapper(False)
|
||||
|
|
@ -69,4 +70,4 @@ class CreateRepoWrapperTest(unittest.TestCase):
|
|||
'--checksum=sha256', '--distro=Fedora', '--simple-md-filenames', '--no-database',
|
||||
'--content=c1', '--content=c2', '--repo=r1', '--repo=r2', '--revision=rev',
|
||||
'--deltas', '--oldpackagedirs=/test/old', '--num-deltas=2', '--workers=3',
|
||||
'--outputdir=/test/output'])
|
||||
'--outputdir=/test/output', '--verbose'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue