tests/vm: fix and simplify HOST_ARCH definition
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 May 2023 09:52:49 +0000 (11:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 May 2023 08:17:32 +0000 (10:17 +0200)
commitb1399b0c851f36b4cd0185321cb620bf4e52f30b
tree33d42074957fb4278ff521b23e5fe53ce91265d9
parenta2696204de05fc3f57a2bc1c7762b9f5f2df594f
tests/vm: fix and simplify HOST_ARCH definition

ARCH is always empty, so just define HOST_ARCH as the result of uname.
The incorrect definition was not being used because the "ifeq" statement
is wrong; replace it with the same idiom based on $(realpath) that the
main Makefile uses.

With this change, vm-build-netbsd in a configured tree will not use
the PYTHONPATH hack.

Reported-by: John Snow <jsnow@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/vm/Makefile.include