From 148e4305786d6909cfb03866343d1c64bb16e5ce Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Aug 30 2013 09:23:19 +0000 Subject: tests: complete the overall RELEASE constant. --- diff --git a/test/run-tests b/test/run-tests index 27e095b..c678a80 100755 --- a/test/run-tests +++ b/test/run-tests @@ -67,8 +67,8 @@ logfile="$PWD/dist/build.log" PYTHONPATH=src ./update-version || : cd test export REVIEW_LOGLEVEL=${REVIEW_LOGLEVEL:-warning} - for root in '-' fedora-17-i386 fedora-18-i386 \ - "fedora-17-i386 --uniqueext=hugo" + for root in '-' fedora-18-i386 fedora-19-i386 \ + "fedora-18-i386 --uniqueext=hugo" do init_mockroot $root done diff --git a/test/test_options.py b/test/test_options.py index ea10274..f0246b9 100644 --- a/test/test_options.py +++ b/test/test_options.py @@ -203,7 +203,8 @@ class TestOptions(FR_TestCase): def test_mock_options(self): ''' test -o/--mock-options and -m/mock-config ''' - v = '18' if '17' in self.BUILDROOT else '17' + nextrelease = '%d' % (int(RELEASE) + 1) + v = nextrelease if RELEASE in self.BUILDROOT else RELEASE buildroot = 'fedora-%s-i386' % v self.init_test('mock-options', argv = ['-n', 'python-test', '--cache'],