From 470bb989654d70669ffb69c3797fee91cb9c285d Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Thu, 14 Dec 2017 22:04:57 -0500 Subject: [PATCH] VM Runner Plugin: move tests to its own directory Move tests to the plugin's own directory. Signed-off-by: Cleber Rosa --- optional_plugins/runner_vm/setup.py | 1 + optional_plugins/runner_vm/tests/__init__.py | 0 .../unit => optional_plugins/runner_vm/tests}/test_vm.py | 0 selftests/run | 4 +++- 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 optional_plugins/runner_vm/tests/__init__.py rename {selftests/unit => optional_plugins/runner_vm/tests}/test_vm.py (100%) diff --git a/optional_plugins/runner_vm/setup.py b/optional_plugins/runner_vm/setup.py index c1550fa3..347f44d1 100644 --- a/optional_plugins/runner_vm/setup.py +++ b/optional_plugins/runner_vm/setup.py @@ -25,6 +25,7 @@ setup(name='avocado-framework-plugin-runner-vm', packages=find_packages(), include_package_data=True, install_requires=['avocado-framework-plugin-runner-remote', 'libvirt-python'], + test_suite='tests', entry_points={ 'avocado.plugins.cli': [ 'vm = avocado_runner_vm:VMCLI', diff --git a/optional_plugins/runner_vm/tests/__init__.py b/optional_plugins/runner_vm/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/selftests/unit/test_vm.py b/optional_plugins/runner_vm/tests/test_vm.py similarity index 100% rename from selftests/unit/test_vm.py rename to optional_plugins/runner_vm/tests/test_vm.py diff --git a/selftests/run b/selftests/run index 44956485..0a165ccb 100755 --- a/selftests/run +++ b/selftests/run @@ -36,7 +36,9 @@ def test_suite(): plugins = (('avocado-framework-plugin-varianter-yaml-to-mux', 'varianter_yaml_to_mux'), ('avocado-framework-plugin-runner-remote', - 'runner_remote')) + 'runner_remote'), + ('avocado-framework-plugin-runner-vm', + 'runner_vm')) for plugin_name, plugin_dir in plugins: if plugin_available(plugin_name): path = os.path.join(basedir, 'optional_plugins', -- GitLab