From 98d7353e9f2a3c1a4a1dea88cdfebee6c7affd0f Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Tue, 17 Nov 2009 17:49:36 +0800 Subject: [PATCH] qemu.tests: Add a subtest stub This testcase which itself is doing nothing is used for dealing with VM(s) via framework, i.e. create_image, destroy VM(s) etc. Signed-off-by: Amos Kong This patch try to fix all the tab and trailing space problems. Signed-off-by: Jason Wang --- qemu/tests/cfg/image_remove.cfg | 5 +++++ qemu/tests/cfg/qemu_img_check.cfg | 8 ++++++++ qemu/tests/stub.py | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100644 qemu/tests/cfg/image_remove.cfg create mode 100644 qemu/tests/cfg/qemu_img_check.cfg create mode 100644 qemu/tests/stub.py diff --git a/qemu/tests/cfg/image_remove.cfg b/qemu/tests/cfg/image_remove.cfg new file mode 100644 index 00000000..46d58e56 --- /dev/null +++ b/qemu/tests/cfg/image_remove.cfg @@ -0,0 +1,5 @@ +- image_remove: + virt_test_type = qemu + kill_vm = yes + type = stub + remove_image = yes diff --git a/qemu/tests/cfg/qemu_img_check.cfg b/qemu/tests/cfg/qemu_img_check.cfg new file mode 100644 index 00000000..1faf2ba4 --- /dev/null +++ b/qemu/tests/cfg/qemu_img_check.cfg @@ -0,0 +1,8 @@ +- qemu_img_check: + virt_test_type = qemu + only qcow2 + vms = '' + type = stub + post_command_noncritical = no + check_image = yes + post_command_timeout = 600 diff --git a/qemu/tests/stub.py b/qemu/tests/stub.py new file mode 100644 index 00000000..2871ac39 --- /dev/null +++ b/qemu/tests/stub.py @@ -0,0 +1,9 @@ +def run_stub(test, params, env): + """ + A stub test case for using framework feature to do the test + + @param test: Kvm test object + @param params: Dictionary with the test parameters. + @param env: Dictionary with test environment. + """ + pass -- GitLab