[MERGED] python/osmo-python-tests[master]: Print version before tests

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Mon Jan 15 13:56:47 UTC 2018


Max has submitted this change and it was merged.

Change subject: Print version before tests
......................................................................


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
---
M osmopy/__init__.py
M tests/test_py3.py
2 files changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Neels Hofmeyr: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/osmopy/__init__.py b/osmopy/__init__.py
index c3d4b8c..4e818ed 100644
--- a/osmopy/__init__.py
+++ b/osmopy/__init__.py
@@ -1,4 +1,4 @@
 #!/usr/bin/env python
-__version__ = '0.0.8'
+__version__ = '0.0.9'
 
 __all__ = ['obscvty', 'osmoutil', 'osmo_ipa', 'osmo_interact']
diff --git a/tests/test_py3.py b/tests/test_py3.py
index 909d057..1c0c19b 100644
--- a/tests/test_py3.py
+++ b/tests/test_py3.py
@@ -38,6 +38,8 @@
     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))
 

-- 
To view, visit https://gerrit.osmocom.org/5791
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If13cba60a19e9c15885355f85def4d134fa37993
Gerrit-PatchSet: 1
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list