From patchwork Wed Jun 21 14:47:55 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: 106082 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp1860446obh; Wed, 21 Jun 2017 07:53:35 -0700 (PDT) X-Received: by 10.237.52.99 with SMTP id w90mr39801328qtd.19.1498056815233; Wed, 21 Jun 2017 07:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498056815; cv=none; d=google.com; s=arc-20160816; b=m/kVzLNvqsK7saNSscncrK73i6FdIKVrkDN/rP1aW24wa+a5gBAj1iVn0DKqaa2D1a bcUBRWGiT7e3RGuMXjtMXr6gmEyEM1SfJlcNyAVxml4eKZOFVotKHt2wIrN+OkjsfZKg 6fBYM2HkBl8y6dk29ODvL7TiDFhRuDTTd2VLXVw+D7QfKEJ8pPRiOkP2+rWw0YG1O02h 4w3Wk3GenX2XWosnuKYDp7l3/Y8a08HS8tTiPN2C6Dea+mBey89F6v8d8qttp50Q+l6M u+14IEwjL67FHUIxdkuDcXQANbQ7dwvS9FWUfzf9PMPfokjyKoz7JnB1dCER6jRqXgjl QJzg== 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=FD+3b9X0Ea1O9KQ33qO5xpRM6x28/sOnvJHk46rYEp8=; b=QJdGLTesCgZ7xzMrRazDBxVqdYGhCx7g8V91gZzG8vD3xnRvOwuvRUWSFrQzpW2q3G t3w8biHV4y3QKecVmvtx7Lg0pG3Oy4J5lCgjtMTHpmHpIz2y8pPMtFRc+ruSBMqIUWiC oM0hfkpQ4QPvBGFUm28MTL/moilQnqsuQl1CSkIyb8vFqySJIn3ZNFMoBdFbb9XGpBGm 60MQIRSgaHZi1/AqrNW0Iu0MWXnyIa0JKT99tdaiORdo8QAqACql5vjQzDODU4c1fhQw Ku6IyQtTr2sVEVYBRi0zU/c2e5QOy6RxNULRu5o3HAliOlOXm/a5ijTott+GW0PHnUS3 VtSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=RxC4ld6q; 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 f186si14589808qkd.258.2017.06.21.07.53.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 07:53:35 -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=RxC4ld6q; 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]:54525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNh0e-0003zU-F4 for patch@linaro.org; Wed, 21 Jun 2017 10:53:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNguv-0006j6-ES for qemu-devel@nongnu.org; Wed, 21 Jun 2017 10:47:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNgus-00050p-2b for qemu-devel@nongnu.org; Wed, 21 Jun 2017 10:47:37 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:33277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNgur-000509-Sj for qemu-devel@nongnu.org; Wed, 21 Jun 2017 10:47:34 -0400 Received: by mail-wr0-x229.google.com with SMTP id r103so138114904wrb.0 for ; Wed, 21 Jun 2017 07:47:33 -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=FD+3b9X0Ea1O9KQ33qO5xpRM6x28/sOnvJHk46rYEp8=; b=RxC4ld6qSRllqohkfU2tisQgywtAD0T6/2Ot18/Foc4Qds1F3JeJeCONinnPcq42n/ 50aAIYZFJS6+PvcKaGDp8mp/JerZTNDicryTxh81Y+87aW2hzRn82APkJgYFE1kr9FOT wRuM2JFCbXPYcxpJa0C4QXLgluXlPhXy8bLWM= 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=FD+3b9X0Ea1O9KQ33qO5xpRM6x28/sOnvJHk46rYEp8=; b=WeoInNwe0EvNMJdz/vWkzilMYAEySYNqxxOsNc/E9y0hH1fl1nYonupqCzIVPDU3zM fgihP9GPLebQ/EDGty4vF6OHiyVNT1FZRGDbtg0gLcuNU/AItGYvTNegniZwk9mMV0wU s3+saXF7dX36/lD2oOlKStnKLBSvv9n3omUsoXO4qdmOID/qx+1AOoSdoH+24AHjdwLu 3P8xp7fxz1ynz6V0EZ3YmB9KYDVAuN7ADC+9RwcQnDxWGq5rCEKytHEaDuJEIcR5clCa yIUWRFoBILJSnb7sLjLCX5EN/AYxAbEuNuwPbaS4fMPSUplVZRep0Xg1sir8PzTIO3FE vMzA== X-Gm-Message-State: AKS2vOx8KEa8GsqIs0AXdq7rKJQikXJocole3ph+I29EnxjIihy9LQPD 2pX1rFpSJq/8tVUg X-Received: by 10.28.139.201 with SMTP id n192mr7132880wmd.84.1498056452733; Wed, 21 Jun 2017 07:47:32 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p137sm12439119wmb.2.2017.06.21.07.47.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 07:47:31 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 585DB3E0F31; Wed, 21 Jun 2017 15:48:14 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 21 Jun 2017 15:47:55 +0100 Message-Id: <20170621144814.15324-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170621144814.15324-1-alex.bennee@linaro.org> References: <20170621144814.15324-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::229 Subject: [Qemu-devel] [PULL 02/21] docker: let _copy_with_mkdir() sub_path argument be optional 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: Fam Zheng , =?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" From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Alex Bennée -- 2.13.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 8747f6a440..6ddc6e4c2a 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -52,7 +52,7 @@ def _guess_docker_command(): raise Exception("Cannot find working docker command. Tried:\n%s" % \ commands_txt) -def _copy_with_mkdir(src, root_dir, sub_path): +def _copy_with_mkdir(src, root_dir, sub_path='.'): """Copy src into root_dir, creating sub_path as needed.""" dest_dir = os.path.normpath("%s/%s" % (root_dir, sub_path)) try: