run: Print shorter, completely coherent test names

We can strip a lot of unneeded [1] info from
test names displayed in the test runner.

Unfortunately, there are lots and lots of corner
cases when trying to figure out automagically
what to strip from the test name and what to not
strip, so instead of doing it choose an appropriate
index, appropriate for the way the test runner works
(this might print names not entirely correct for
people using custom cartesian files).

Using a part of the full name instead of the
short name also means we can be sure that just
copying and pasting the name from the test list
in the test list will just work, always.

So now a test run will give the much nicer output:

$ ./run -t kvm
SETUP: PASS (1.40 s)
DATA DIR: /home/lmr/Code/virt-test.git/shared/data
DEBUG LOG:
/home/lmr/Code/virt-test.git/logs/run-2012-11-29-15.15.00/debug.log
TESTS: 13
migrate.default.tcp: PASS (51.86 s)
migrate.default.unix: PASS (27.91 s)
migrate.default.exec: PASS (26.07 s)

And the test log dirs are also coherent with this
printed name.

[1] Some might argue the information is important, but
here we will sacrifice some of the immediately obvious
info for shorter and easier in the eyes names

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
README.rst: Update some details of quick start guide

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Better way to find qemu-img and qemu-io

This change is similar to 81ff35cbc64d973964c8f84efc0dfe3c7c06ceb7,
only slightly nicer, since we search for qemu-img and
qemu-io in more paths, and also, if they are not actually
found, an error will be raised.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Verify if qemu binary provided actually exists

Do basic sanity checking of the qemu option passed,
if it's not a real file, throw a RuntimeError.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: If using custom config files, falback to print shortnames

It is pretty hard to anticipate what may happen when using
a custom config file rather than the more controlled environment
of the virt test. So, every time we are using custom configs,
let's print the shortname rather than the highly neat (and
modified) trimmed full name.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
kvm: nmi_bsod_catch - Fix typo

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tests: image_copy - Fix undefined variable error

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
subtests.cfg.sample: Remove autotest tests from JeOS set

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
time_drift.ntp: Exclude from JeOS set

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
kvm: qemu_img - Fix commit test

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
kvm: block_stream: Fix test

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
enospc: Remove it from JeOS set

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
aexpect: Clean up the use of the reserved id keyword

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
aexpect: Clean up the use of the reserved file keyword

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
aexpect: Remove unused autotest common import

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
aexpect: Clean up the use of the reserved str keyword

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
aexpect: Clean up the use of the reserved filter keyword

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
aexpect: Clean up unused variables

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virsh: Adapt VirshSession to use the new aexpect terminology

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils_misc_unittest: Fix unused variable

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