Change in pysim[master]: pySim/ prepare this to be executed on Jenkins

laforge gerrit-no-reply at
Fri Mar 12 07:25:53 UTC 2021

laforge has submitted this change. ( )

Change subject: pySim/ prepare this to be executed on Jenkins

pySim/ prepare this to be executed on Jenkins

As it turns out, we had this set of unit tests since 2018, but
so far they were not executed during the build verification.

Let's fix this:

  * run unittest in discovery mode for all files in 'tests/' (commented out);
  * rename this file, so it can be automatically detected and executed;
  * properly import the API to be tested.

Currently 2 out of 16 unit tests are failing, so we need to get
them passing first and then uncomment the unittest execution.

Change-Id: I4d4facfabc75187acd5238ff4d0f26022bd58f82
M contrib/
R tests/
2 files changed, 5 insertions(+), 1 deletion(-)

  Jenkins Builder: Verified
  laforge: Looks good to me, approved

diff --git a/contrib/ b/contrib/
index bfbf4e0..9b4689d 100755
--- a/contrib/
+++ b/contrib/
@@ -15,6 +15,10 @@
 pip install pyyaml
 pip install cmd2
+# Execute automatically discovered unit tests first
+# TODO: uncomment once all tests are passing
+# python -m unittest discover -v -s tests/
 cd pysim-testdata
diff --git a/pySim/ b/tests/
similarity index 97%
rename from pySim/
rename to tests/
index 5cdb55e..44fe631 100644
--- a/pySim/
+++ b/tests/
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 import unittest
-import utils 
+import pySim.utils as utils
 class DecTestCase(unittest.TestCase):

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4d4facfabc75187acd5238ff4d0f26022bd58f82
Gerrit-Change-Number: 23327
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list