]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: explicitly pass source/build dir to 'check' command
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 15 Mar 2023 17:43:17 +0000 (17:43 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 22 Mar 2023 15:08:26 +0000 (15:08 +0000)
commit0c8076b024cd55c8b59323f3aa7c88481436eb3a
tree13534785ba615e43d5e33ea3c64c7d6b359c42d2
parent85b983485be712e3bf74d2352cbd451cb1163c21
iotests: explicitly pass source/build dir to 'check' command

The 'check' script has some rather dubious logic whereby it assumes
that if invoked as a symlink, then it is running from a separate
source tree and build tree, otherwise it assumes the current working
directory is a combined source and build tree.

This doesn't work if you want to invoke the 'check' script using
its full source tree path while still using a split source and build
tree layout. This would be a typical situation with meson if you ask
it to find the 'check' script path using files('check').

Rather than trying to make the logic more magical, add support for
explicitly passing the dirs using --source-dir and --build-dir. If
either is omitted the current logic is maintained.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Hanna Czenczek <hreitz@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230303160727.3977246-2-berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230315174331.2959-19-alex.bennee@linaro.org>
tests/qemu-iotests/check
tests/qemu-iotests/testenv.py