usb: raise TestNAError for unsupported devices

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
fix multi_disk

Used wrong path and thus didn't match image file names.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
kvm_vm: Redirect stderr to stdout for 'qemu-kvm -device ?' command

'qemu-kvm -device ?' print output to stderr. So have to udpate the
code to make it work.

Signed-off-by: Feng Yang <fyang@redhat.com>
run: Refactor command line args parsing

Create a specialized class for parsing the arguments,
make the code better organize, and start categorizing
options (such as general options and options specific
to a given virt subtest).

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Refactor application code

Organize test runner code better under an App class.
This way it is easier to visualize in high level terms
what the test runner does.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Expose backing data dir, default QEMU used

So it is easier to visualize each one of these options.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Set english environment when executing virt tests

This was one tweak on the autotest control files not
present in the test runner - There are occasions where
localized output of certain commands might cause failures,
so let's ensure the language is en_US.UTF-8.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Fix slight message inconsistency

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Better text of restore image help

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Add kvm specific option --accel

Make it possible to choose between tcg and kvm when running
the kvm specific tests. This is part of a series of changes
that will end up in renaming what we know today as 'kvm'
test to 'qemu'.

I think there's a bunch of assumptions that we make throughout
the tests with regards to qemu being accelerated with kvm,
that we'll discover when running the tests with tcg. Stay
tuned.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: add general option --restart-vm

Add a general flag to restart the vm between tests, which
does nothing but set restart_vm = yes for all cartesian
dicts.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
env_process: Add restore_image postprocessing parameter

Now when setting restore_image = yes, the postprocessing
code will *always* restore the image from backup. With
this we can implement an option in the test runner to
always restore the image from backup between tests.

Useful for folks that want to be extra careful, and
ensure the guest image is always pristine and clean
on every new test.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Add general option --restore-image-between-tests

So on every test the pristine JeOS image is copied over
on every new test. We could've implemented something
with internal disk snapshots, but then we'd restrict
ourselves only to disk images that support snapshots.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
standalone_test: Printing more information in the debug log

Print some useful info in the debug log:

* Timestamp of test job start
* Options passed on the command line
* If using the kvm test, print the qemu binaries used

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
standalone_test: More debug log tweaks

Show on debug messages where we looked for test modules,
what is the search criteria, the modules we found.

Also, put a bit of spacing and some messages that help
to make sense out of the debug log.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>