Skip to content

Commit

Permalink
Avocado: Release 35.0
Browse files Browse the repository at this point in the history
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: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Apr 27, 2016
1 parent e8393af commit 523c0e4
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
9 changes: 6 additions & 3 deletions avocado.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
%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/
Expand Down Expand Up @@ -114,6 +114,9 @@ examples of how to write tests on your own.
%{_datadir}/avocado/wrappers

%changelog
* Wed Apr 27 2016 Cleber Rosa <[email protected]> - 35.0-0
- New upstream release 35.0 (new versioning scheme)

* Thu Apr 14 2016 Cleber Rosa <[email protected]> - 0.34.0-1
- Added job pre/post scripts directories

Expand Down
2 changes: 1 addition & 1 deletion avocado/core/remote/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
9 changes: 4 additions & 5 deletions avocado/core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
# Copyright: Red Hat Inc. 2013-2014
# Author: Lucas Meneghel Rodrigues <[email protected]>

__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)
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
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:
Expand Down
6 changes: 3 additions & 3 deletions selftests/functional/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def setUp(self):
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):
"""
Expand Down
2 changes: 1 addition & 1 deletion selftests/unit/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def setUp(self):
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
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = avocado
version = 0.34.0
version = 35.0
summary = Avocado Test Framework
description-file =
README.rst
Expand Down

0 comments on commit 523c0e4

Please sign in to comment.