avocado: Fix BUILD_DIR if it's equal to SOURCE_DIR
commit50b13d31f4cc6c70330cc3a92561a581fc176ec9
authorPeter Delevoryas <peter@pjd.dev>
Sat, 2 Jul 2022 18:56:04 +0000 (2 11:56 -0700)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 12 Jul 2022 22:06:02 +0000 (13 00:06 +0200)
treeb1f0ca71799d4467fc6c535f2d61ce5325d98b3a
parent52eaefd36c33d17c5c52de0d02f1edf7400c0abb
avocado: Fix BUILD_DIR if it's equal to SOURCE_DIR

I like to build QEMU from the root source directory [*], rather
than cd'ing into the build directory. This code may as well include
a search path for that, so that you can run avocado tests individually
without specifying "-p qemu_bin=build/qemu-system-arm" manually.

[*] See commit dedad02720 ("configure: add support for pseudo-"in source tree" builds")

Signed-off-by: Peter Delevoryas <peter@pjd.dev>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220702185604.46643-1-peter@pjd.dev>
[PMD: Mention commit dedad02720]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
tests/avocado/avocado_qemu/__init__.py