mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
allow empty dist tag in functional tests
before this commit: fetch_tests and release_yum_tests allow *any* dist tag, but the tag must not be empty or else the glob fails on double-dot in path name. after this commit: allow the tag to be any *or* empty.
This commit is contained in:
parent
4e29304554
commit
2a58a9b8e7
2 changed files with 4 additions and 4 deletions
|
@ -75,9 +75,9 @@ class FetchBuilderTests(TitoGitTestFixture):
|
|||
tito('build --rpm --output=%s --no-cleanup --debug --arg=source=%s ' %
|
||||
(self.output_dir, self.source_filename))
|
||||
self.assertEquals(1, len(glob.glob(join(self.output_dir,
|
||||
"extsrc-0.0.2-1.*.src.rpm"))))
|
||||
"extsrc-0.0.2-1.*src.rpm"))))
|
||||
self.assertEquals(1, len(glob.glob(join(self.output_dir,
|
||||
"noarch/extsrc-0.0.2-1.*.noarch.rpm"))))
|
||||
"noarch/extsrc-0.0.2-1.*noarch.rpm"))))
|
||||
|
||||
def test_tag_rejected(self):
|
||||
self.assertRaises(SystemExit, tito,
|
||||
|
@ -95,6 +95,6 @@ class FetchBuilderTests(TitoGitTestFixture):
|
|||
self.source_filename)
|
||||
|
||||
self.assertEquals(1, len(glob.glob(join(yum_repo_dir,
|
||||
"extsrc-0.0.2-1.*.noarch.rpm"))))
|
||||
"extsrc-0.0.2-1.*noarch.rpm"))))
|
||||
self.assertEquals(1, len(glob.glob(join(yum_repo_dir,
|
||||
"repodata/repomd.xml"))))
|
||||
|
|
|
@ -67,6 +67,6 @@ class YumReleaserTests(TitoGitTestFixture):
|
|||
tito('release --debug yum-test')
|
||||
|
||||
self.assertEquals(1, len(glob.glob(join(yum_repo_dir,
|
||||
"releaseme-0.0.1-1.*.noarch.rpm"))))
|
||||
"releaseme-0.0.1-1.*noarch.rpm"))))
|
||||
self.assertEquals(1, len(glob.glob(join(yum_repo_dir,
|
||||
"repodata/repomd.xml"))))
|
||||
|
|
Loading…
Add table
Reference in a new issue