KVM test: kvm_config.py: support one-line conditional blocks
commit860f3da0e7786d5f0c26f0c3787683b9a3b72f5d
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Mon, 21 Feb 2011 21:15:20 +0000 (21 21:15 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Mon, 21 Feb 2011 21:15:20 +0000 (21 21:15 +0000)
tree010cf0ec236e84a33251d224bd9154d650399213
parent9016d1e717a249a1c3176d9556c7b844c767a8cd
KVM test: kvm_config.py: support one-line conditional blocks

Support statements such as:

ide: only unattended_install

which is just a short form for

ide:
    only unattended_install

Currently the short form is supported only for assignment statements.
This patch allows it to be used for all types of statements.

Note: multiple filters can be combined on the same line, e.g.

ide: qcow2: Fedora: only unattended_install

is equivalent to:

ide..qcow2..Fedora: only unattended_install

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5263 592f7852-d20e-0410-864c-8624ca9c26a4
client/tests/kvm/kvm_config.py