提交 523c0e41 编写于 作者: C Cleber Rosa

Avocado: Release 35.0

This release introduces a new versioning scheme, so the "big bump"
from 0.34.0 to 35.0 is not such a big bump.

Some additional changes with regards to versioning were added, such as
the way the remote runner checks for Avocado on the remote host.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 e8393af3
%global modulename avocado
%if ! 0%{?commit:1}
%define commit c71e2c8ef354afa05554ad32aa08d2684b7b5440
%define commit c7e3013c180813a90c15a5c3d1cfefea872edca2
%endif
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Summary: Avocado Test Framework
Name: avocado
Version: 0.34.0
Release: 1%{?dist}
Version: 35.0
Release: 0%{?dist}
License: GPLv2
Group: Development/Tools
URL: http://avocado-framework.github.io/
......@@ -114,6 +114,9 @@ examples of how to write tests on your own.
%{_datadir}/avocado/wrappers
%changelog
* Wed Apr 27 2016 Cleber Rosa <cleber@redhat.com> - 35.0-0
- New upstream release 35.0 (new versioning scheme)
* Thu Apr 14 2016 Cleber Rosa <cleber@redhat.com> - 0.34.0-1
- Added job pre/post scripts directories
......
......@@ -42,7 +42,7 @@ class RemoteTestRunner(TestRunner):
# Let's use re.MULTILINE because sometimes servers might have MOTD
# that will introduce a line break on output.
remote_version_re = re.compile(r'^Avocado (\d+)\.(\d+)\.(\d+)$',
remote_version_re = re.compile(r'^Avocado (\d+)\.(\d+)$',
re.MULTILINE)
def _copy_files(self):
......
......@@ -14,14 +14,13 @@
# Copyright: Red Hat Inc. 2013-2014
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
__all__ = ['MAJOR', 'MINOR', 'RELEASE', 'VERSION']
__all__ = ['MAJOR', 'MINOR', 'VERSION']
MAJOR = 0
MINOR = 34
RELEASE = 0
MAJOR = 35
MINOR = 0
VERSION = "%s.%s.%s" % (MAJOR, MINOR, RELEASE)
VERSION = "%s.%s" % (MAJOR, MINOR)
if __name__ == '__main__':
print(VERSION)
......@@ -98,7 +98,7 @@ project = u'Avocado'
copyright = u'2014-2015, Red Hat'
version = VERSION
release = VERSION
release = 0
if not ON_RTD: # only import and set the theme if we're building docs locally
try:
......
......@@ -82,9 +82,9 @@ class RunnerOperationTest(unittest.TestCase):
def test_show_version(self):
result = process.run('./scripts/avocado -v', ignore_status=True)
self.assertEqual(result.exit_status, 0)
self.assertTrue(re.match(r"^Avocado \d+\.\d+\.\d+$", result.stderr),
"Version string does not match 'Avocado \\d\\.\\d\\.\\"
"d':\n%r" % (result.stderr))
self.assertTrue(re.match(r"^Avocado \d+\.\d+$", result.stderr),
"Version string does not match 'Avocado \\d\\.\\d:'\n"
"%r" % (result.stderr))
def test_alternate_config_datadir(self):
"""
......
......@@ -62,7 +62,7 @@ class RemoteTestRunnerTest(unittest.TestCase):
Remoter = flexmock(remoter.Remote)
Remoter.new_instances(Remote)
args_version = 'avocado -v'
version_result = flexmock(stdout='Avocado 1.2.3', exit_status=0)
version_result = flexmock(stdout='Avocado 1.2', exit_status=0)
args_env = 'env'
env_result = flexmock(stdout='''XDG_SESSION_ID=20
HOSTNAME=rhel7.0
......
[metadata]
name = avocado
version = 0.34.0
version = 35.0
summary = Avocado Test Framework
description-file =
README.rst
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册