testing/tests/package/test_python: refactor TestPythonBase
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 12 Jul 2017 02:40:05 +0000 (19:40 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Jul 2017 20:38:21 +0000 (22:38 +0200)
commit4c85d3e4596ae1e9ff5fe25977abb8ef8f2294e0
tree604ba4662405d8ea9ebb8a789619de5fd614cf67
parent255b8ab406cf6ce114b4d2c2e2c0dba6e4402f38
testing/tests/package/test_python: refactor TestPythonBase

Convert TestPythonBase to a true base class that only provides code
implementing various tests without defining tests themselves in a
"discoverable" form.

To retain correct testing functionality, add TestPython2 derived class
that uses code from TestPythonBase to define actual runnable test.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
[Thomas: fix typo in commit log, update .gitlab-ci.yml, both pointed
by Ricardo.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
.gitlab-ci.yml
support/testing/tests/package/test_python.py