提交 2876254b 编写于 作者: A Amos Kong 提交者: Lucas Meneghel Rodrigues

standalone_test: fix of getting type name from config path

@ client/tests/virt/ $ ./run -c qemu/cfg/tests.cfg
  IOError: [Errno 20] Not a directory: '/home/devel/
  autotest/client/tests/virt/cfg/cfg/virtio-win.cfg'

The processed type name is 'cfg', it should be 'qemu'

I tried to execute run without 'type' parameter,
and got an error of wrong path of cfg file.
This patches fixed this problem. 'options.type' is
also used in other part, so assign the processed
type name to it.

v2: fix a wrong assignment
Signed-off-by: NAmos Kong <akong@redhat.com>
上级 b04757ac
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册