Print version before tests

This helps with debugging of import-related issues - we know the version
under test before the test has a chance to hang.

Change-Id: If13cba60a19e9c15885355f85def4d134fa37993
Related: OS#2821
This commit is contained in:
Max 2018-01-15 14:08:54 +01:00
parent cd5a6e419e
commit c41b751dec
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
__version__ = '0.0.8'
__version__ = '0.0.9'
__all__ = ['obscvty', 'osmoutil', 'osmo_ipa', 'osmo_interact']

View File

@ -38,6 +38,8 @@ if __name__ == '__main__':
test_host = '127.0.0.5'
test_port = str(random.randint(1025, 60000))
print('Testing v%s on %s:%s' % (__version__, test_host, test_port))
# Each client connection will create a new protocol instance
server = loop.run_until_complete(loop.create_server(CtrlProtocol, test_host, test_port))