[PATCH 1/3] tests/docker: simplify HOST_ARCH definition

Paolo Bonzini posted 3 patches 1 year, 3 months ago
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Thomas Huth <thuth@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Beraldo Leal <bleal@redhat.com>
[PATCH 1/3] tests/docker: simplify HOST_ARCH definition
Posted by Paolo Bonzini 1 year, 3 months ago
ARCH is always empty, so just define HOST_ARCH as the result of uname.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index 94015253254c..142e8605eee9 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -6,7 +6,7 @@ NULL :=
 SPACE := $(NULL) #
 COMMA := ,
 
-HOST_ARCH = $(if $(ARCH),$(ARCH),$(shell uname -m))
+HOST_ARCH = $(shell uname -m)
 USER = $(if $(NOUSER),,$(shell id -un))
 UID = $(if $(NOUSER),,$(shell id -u))
 
-- 
2.40.1
Re: [PATCH 1/3] tests/docker: simplify HOST_ARCH definition
Posted by Alex Bennée 1 year, 3 months ago
Paolo Bonzini <pbonzini@redhat.com> writes:

> ARCH is always empty, so just define HOST_ARCH as the result of uname.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Acked-by: Alex Bennée <alex.bennee@linaro.org>

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro
Re: [PATCH 1/3] tests/docker: simplify HOST_ARCH definition
Posted by Philippe Mathieu-Daudé 1 year, 3 months ago
On 25/5/23 12:28, Paolo Bonzini wrote:
> ARCH is always empty, so just define HOST_ARCH as the result of uname.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   tests/docker/Makefile.include | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>