iotests: fix loading of common.config from tests/ subdir
commit458598e6a53077872da5defbe8c9642f6390c8d2
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 4 Feb 2021 12:48:33 +0000 (4 12:48 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 8 Feb 2021 11:19:51 +0000 (8 11:19 +0000)
treeb8391d81e4709ecc3fdc9d9340204a23e9173b25
parentaae12d4baa1304756c073fac34ac53e6445f4fdf
iotests: fix loading of common.config from tests/ subdir

common.rc assumes it is being sourced from the same directory and
so also tries to source common.config from the current working
directory. With the ability to now have named tests in the tests/
subdir we need to check two locations for common.config.

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210204124834.774401-12-berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tests/qemu-iotests/common.rc