From patchwork Fri May 18 15:22:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 136324 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1377003lji; Fri, 18 May 2018 08:22:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomORHNM9UTzI5D0XxdOepsdl1MDjTz473DzCk3oH5DOPLnUz5L/vE99qi6PPmjrt5KZ6vE X-Received: by 2002:aed:3eee:: with SMTP id o43-v6mr9433134qtf.3.1526656972950; Fri, 18 May 2018 08:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526656972; cv=none; d=google.com; s=arc-20160816; b=D8AyV6Dd17qkoSWbpUJaxVdRyxY1twpiMLfl3E80eJu6wdIlaYAc6Oo/6QDL26yZoz kXPR1nEILgM/RXlRradqtADluTXkYwrcE2TNRheOi4d24pNbvFrk/SCPtYLzbkBPWANR qTmk1KVBPjBhS+tyBbUuQh68xm9Bi8Opz8RHx0a6YTzytgv6j6DVtp07Sk8uw3hXW2G9 d89SEfu+oEmd04iwkBGvl0JpjOSqMA0NbWj3CdBFojTndMB1VY6otM6ZaPqDdce1XG0X 40uyIbwLm7MzflDSMMSWcY5XnREsRyIbNBKAwp8/WI1n0jwFL4UpFDsBKn1uCS2BMRex P07w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=PO8/6zjavMuv1d0k0iX6M25QP4pjTkuuv21f2nHbNC8=; b=SL7bj9rZ1faw7+O3nHPZeiUlzVM+U6IH4kT5Z4Y+nhAm7Oz0erpZCOWYunEoz3nkMw xFGT+0xos3h3KaMcKbTnwDdqdKyDHnb9Tb1zlhgVRCkkKVLM11cZEU12hAwrON8vNKrH ypzJoIb6Puo9fdOdh3nDX3SduLnLq2Wa49pTTVe08meSrCWTUlS09iF8aG6QE87zy+rT s7FKba6lYhbq+XxMkZeGvZJ++F9D7KOrVJgNi3K4Gg4Y/59CXK38hpfPzhhW+xz7UcM8 mZ2aeaBVZcVE/VCJCyG6ZCgDpPygP98eCkNQ93xttLYlmdhudFzYM8NZdmrWxZp6AN6I YHlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Kw2568Pr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k31-v6si260127qvh.111.2018.05.18.08.22.52 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 May 2018 08:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Kw2568Pr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJhDY-0006JW-Fg for patch@linaro.org; Fri, 18 May 2018 11:22:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJhDO-0006JQ-3M for qemu-devel@nongnu.org; Fri, 18 May 2018 11:22:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJhDJ-0006WA-2i for qemu-devel@nongnu.org; Fri, 18 May 2018 11:22:42 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:35614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJhDI-0006Vl-Ry for qemu-devel@nongnu.org; Fri, 18 May 2018 11:22:37 -0400 Received: by mail-wr0-x230.google.com with SMTP id i14-v6so9603175wre.2 for ; Fri, 18 May 2018 08:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PO8/6zjavMuv1d0k0iX6M25QP4pjTkuuv21f2nHbNC8=; b=Kw2568PrpiP7MzSaiEAWsT6b2su4GfDZLb3GZoJW0gvLwzcM+cTeVFbtoGcr0d6ZVv 7Qn4uNo+g14YjLjdnVIyM0nfJ3S2rFzg+xCHniaIEMiyMw3vE0KNY+/nwUSpbWeqnMg4 ZiLVuWLU1aBxr1LB0jBSo70zyAU/LnxqlmNBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PO8/6zjavMuv1d0k0iX6M25QP4pjTkuuv21f2nHbNC8=; b=XSFRtnKNT6enbN+nOY761yW31J6AO1PsGV/Ne3E6DPCfo8CvXNlNyl7AWP7UTIPWQZ kU1rS33nnFjiwYo/9wRi5KiD2FznD7mEOKNycIWErvSDjQ9yWmBZPrdRuItEFfXmFG0e u3wcFlzdphvbyLBHGx0piwu2yMHKB1LzDjLiRkVIal8FIBUjcJhaqnSh4Tya6ufNjkfW gQig7BuU7PpA+5M0I07vlJdE/eI2RqicQ2qwSSHED/GYDCT8xWhNUU6nS1dQAgSjvVy8 DxBsHnKs5qNSOJXKHAR60hHUgn59g7zrjKkr3K4kN5NT0O3Auw6F/VO3c3BIDGAqnAY5 Wh0g== X-Gm-Message-State: ALKqPwcTbddSj/PeQMUC0kUHGXiIKB1jBwSZQXx+2apvMlfkEXMFAyhx Cb/REG+1DLBK+yXcQbHjEcqUPg== X-Received: by 2002:adf:ab08:: with SMTP id q8-v6mr6196625wrc.239.1526656955761; Fri, 18 May 2018 08:22:35 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f83-v6sm12141596wmh.32.2018.05.18.08.22.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 08:22:34 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8DDBC3E006A; Fri, 18 May 2018 16:22:34 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: famz@redhat.com Date: Fri, 18 May 2018 16:22:28 +0100 Message-Id: <20180518152228.15362-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::230 Subject: [Qemu-devel] [PATCH] tests/docker/Makefile.include: handle empty TARGET_LIST X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" If the user doesn't specify a TARGET_LIST they get the current configuration but with spaces and hilarity ensues. This adds some make magic to turn the TARGET_LIST back into a comma separated list. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index d00887bdf1..eccd5f7d68 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -125,6 +125,10 @@ docker: @echo ' EXTRA_FILES=" [... ]"' @echo ' Include extra files in image.' +null := +space := $(null) # +comma := , + # This rule if for directly running against an arbitrary docker target. # It is called by the expanded docker targets (e.g. make # docker-test-foo@bar) which will do additional verification. @@ -148,7 +152,7 @@ docker-run: docker-qemu-src $(if $V,,--rm) \ $(if $(DEBUG),-ti,) \ $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=$(NETWORK)),--net=none) \ - -e TARGET_LIST=$(TARGET_LIST) \ + -e TARGET_LIST=$(subst $(space),$(comma),$(TARGET_LIST)) \ -e EXTRA_CONFIGURE_OPTS="$(EXTRA_CONFIGURE_OPTS)" \ -e V=$V -e J=$J -e DEBUG=$(DEBUG) \ -e SHOW_ENV=$(SHOW_ENV) \