]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: Add a tox env that can test importing files 33949/head
authorThomas Bechtold <tbechtold@suse.com>
Fri, 13 Mar 2020 11:38:10 +0000 (12:38 +0100)
committerKefu Chai <kchai@redhat.com>
Thu, 26 Mar 2020 08:16:31 +0000 (16:16 +0800)
commitcb8d906af55eae6bd21348c7ec483813e951532a
tree73b5860bc40d2799ce82cc43477ad7fa46e20b7c
parent867bc6064482174c524a858a24f704450201535e
qa: Add a tox env that can test importing files

While switching to python3, we need to make sure that we can import
the qa/tasks (and others, but this starts with qa/tasks) on a python3
environment.
To test this, we need to install teuthology into the test
venv. Currently, teuthology is not py3 ready so this will fail.

To test the current state of the qa/tasks directory with the ongoing
work for python3 within teuthology, you can now do:

TEUTHOLOGY_GIT=git+https://github.com/kshtsk/teuthology.git@wip-py3-compat \
    tox -eimport-tasks

This is using the current branch from
https://github.com/ceph/teuthology/pull/1362 which does the work to
make teuthology python3 ready.

NOTE: This tox env is not activated by default. It's currently failing
but it provides a way to iterate over the failures and once we have
them fixed, we can activate the tox env during make-check.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
qa/test_import.py [new file with mode: 0644]
qa/tox.ini