Add vcs string to version option output

This commit adds a vcs string to 'tempest --version' output like
'12.0.1.dev122' because it's confusing without vcs when a development
phase, especially.

Change-Id: I4de869c84cefc3e42e8a1416c6deeb29fe72e186
This commit is contained in:
Masayuki Igawa 2016-06-07 15:45:48 +09:00
parent efbe00da61
commit 70e0a8986c

View File

@ -26,7 +26,7 @@ class Main(app.App):
def __init__(self):
super(Main, self).__init__(
description='Tempest cli application',
version=version.VersionInfo('tempest').version_string(),
version=version.VersionInfo('tempest').version_string_with_vcs(),
command_manager=commandmanager.CommandManager('tempest.cm'),
deferred_help=True,
)