Commit 9ace04a5 authored by nextime's avatar nextime

We don't have releases with 1rN numbering

parent 778ad1bb
......@@ -244,11 +244,7 @@ class TestLSBRelease(unittest.TestCase):
# Test "stable releases" with numeric devuan_versions
for rno in lr.RELEASE_CODENAME_LOOKUP:
# From Wheezy on, the codename is defined by the first number but a dot-revision is mandatory
if float(rno) >= 7:
distinfo['RELEASE'] = rno + '.' + str(random.randint(0,9))
else:
distinfo['RELEASE'] = rno + random.choice('.r') + str(random.randint(0,9))
distinfo['RELEASE'] = rno + '.' + str(random.randint(0,9))
distinfo['CODENAME'] = lr.RELEASE_CODENAME_LOOKUP[rno]
distinfo['DESCRIPTION'] = '%(ID)s %(OS)s %(RELEASE)s (%(CODENAME)s)' % distinfo
fn = 'test/devuan_version_' + rnd_string(5,5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment