From patchwork Mon Aug 7 15:39:32 2017 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: 109566 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp2904788obb; Mon, 7 Aug 2017 08:43:15 -0700 (PDT) X-Received: by 10.237.39.3 with SMTP id n3mr1421795qtd.149.1502120595824; Mon, 07 Aug 2017 08:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502120595; cv=none; d=google.com; s=arc-20160816; b=vkSvG4ys7hsK/jJFQjoggBbMj6zotTeYSWTBIdwoUrf1x3is0MIMqtjkNwK3h8GoKn SuO2GumN7UPRv7nT7Lw9vWNmJsq/zngZd1aVIyn4BvzvQQidDMBVjsJ1/09DXjVJ4e91 gK227iN9EEefug1PTDH6rVZNZRVpQaTkd//xZgeTYWoNhoctVSNN4+Ea1/cvk4s8StX/ pM8jcz8KhLyj7Cx88wbFcAXeftQm+eT4k3jBTObno6gcgbvIgdDsScQDB9PeRisZDI8G FAJ3jwDKV3P1ueZLnhLZ9sGDZJrkvI1izOZL/Lep22SsY+sPEYE1hS6gX9uJ0/XOWeRX jN3A== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=zX55oopMfKp58Mp0S2zLwXspD9H7wd7hITYCTAOR7mQ=; b=ZH+oN3B5XBG6+32UQear7vxuAHg4BWftsBFodGvUTs6c0rqGYaLVXodFRsKT6POS97 Dpl/P2U+GBHOklnFEPkIk3jp8M8G5Ry8ubQeYINOtAgty9zMy8RtIbxafD1h1QmTK7lY N6SBadB7S9a0y6qsNT4yH8Lurijc3hBjotA1NzzJeLE3EIKqlrEC1SezlLrZ9spMubwv gIIorUJH5YA1hcDnUhYNjwEaG8oqf4kBaA6fKafdZL9lIQ9bq6Jx+5Xx/OO+YvlPpC3K IK3vgeckZOYf9m3N84pVPndpuZA+PppXz54o0HDkRRrEOM4H/OnkoKQYTQbXnDvPtHT4 bs8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=elYUu0FX; 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 r189si7241214qkb.68.2017.08.07.08.43.15 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 07 Aug 2017 08:43:15 -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.b=elYUu0FX; 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]:38031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dekBV-0007us-6k for patch@linaro.org; Mon, 07 Aug 2017 11:43:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dek8B-0004fz-27 for qemu-devel@nongnu.org; Mon, 07 Aug 2017 11:39:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dek86-0006ad-A7 for qemu-devel@nongnu.org; Mon, 07 Aug 2017 11:39:47 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:35784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dek86-0006Zv-4T for qemu-devel@nongnu.org; Mon, 07 Aug 2017 11:39:42 -0400 Received: by mail-wr0-x22c.google.com with SMTP id k71so3229988wrc.2 for ; Mon, 07 Aug 2017 08:39:41 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=zX55oopMfKp58Mp0S2zLwXspD9H7wd7hITYCTAOR7mQ=; b=elYUu0FXuwTtXUohUFTY4NkgIEKejF1WsW/H3HUHQ1k585YkqloQY1Bfvg9EO0NaJ5 LtDZZfjcxgXIWI0H9Xg6XoeWxSUzWAvSd9rnxgYdCEHGTQC74SCmfsdW0zPk48Z0xdXS qfyf77NoLDVbwj5UGQvjSNBKO7sXzl+7zRc/k= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zX55oopMfKp58Mp0S2zLwXspD9H7wd7hITYCTAOR7mQ=; b=SGFz+6KW1jvLm+Phwd28aQbdI073cVYdvkEjOPHrAnxTH4A49NdYlAIm1DR31JWuDB LigaMFcB/vUqyPtEvVqoKAyMhzkiwjLLRuzT/SpaEOlLamE/3aA9TdN11MrtveUdkYZo forTcv5R2OLiGQHAFhH6BP0XUMxauF6TDgjwwuYRKtWVzeiOC7zzPiOVrs0/5jngFoI0 Ri4VcjcV/7vpTzRq3kTK6V2ysswY8Pipwd6VlTtX+Tk+a2+9lRX+V7rmRqSdfp0nAT13 5mskiiyamXjm+rnaMvp5iuQrZ1nfVsPymCQAnPuVMbPOpz8SPG5eOSw0gVH7pmMpNr8x ykzA== X-Gm-Message-State: AHYfb5g95JMUk8wuPGB08FET4aPGe7XdINN4eKdcLaDAgcCz+AAC6nF5 09EBBl2E9Mw7Auh0KHXP7g== X-Received: by 10.223.170.217 with SMTP id i25mr684175wrc.140.1502120381039; Mon, 07 Aug 2017 08:39:41 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id i5sm10828971wmd.47.2017.08.07.08.39.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Aug 2017 08:39:38 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AFA083E04EF; Mon, 7 Aug 2017 16:39:34 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 7 Aug 2017 16:39:32 +0100 Message-Id: <20170807153934.29477-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170807153934.29477-1-alex.bennee@linaro.org> References: <20170807153934.29477-1-alex.bennee@linaro.org> 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::22c Subject: [Qemu-devel] [PATCH for 2.10 v3 4/6] docker: docker.py make --no-cache skip checksum test 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?= , famz@redhat.com, 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 you invoke with NOCACHE=1 we pass --no-cache in the argv to docker.py but may still not force a rebuild if the dockerfile checksum hasn't changed. By testing for its presence we can force builds without having to manually remove the docker image. Signed-off-by: Alex Bennée --- tests/docker/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.13.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index ee40ca04d9..aab1648cc5 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -261,7 +261,8 @@ class BuildCommand(SubCommand): tag = args.tag dkr = Docker() - if dkr.image_matches_dockerfile(tag, dockerfile): + if "--no-cache" not in argv and \ + dkr.image_matches_dockerfile(tag, dockerfile): if not args.quiet: print "Image is up to date." else: