From nobody Tue Feb 10 05:39:54 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1612273497; cv=none; d=zohomail.com; s=zohoarc; b=G+YSgbjt4DlCnWG1peewAVM17ifE0rLaqLEtyH96p4OaD2Zf7Mh0wF+8XrTOADoAJvCcFX7iJ9PBOKMp+ewQOh9tvcCv2FQyOa4i608gtNVLkWEgSHb78qeC/BL990MPemH1Hz8N1y1ryO4ssVoedrpQRpiKTriyWyAejD8elrc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612273497; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=hf7ynIumjxT8747QQLhELSkjFJ2pAeJjBigreGwj8dE=; b=kMmFJzMuSn7ZVdGAkBGnBDto2trT+Gb++BvaERwwqtam1C9i8cy1mDt58PtBnBhidTHMwvWIUN2Jt3CkOivRzXOPHzUg3SO8RLJ7MuDJP5vyl5VURsCAzcKnxHveyEB/5LN2N0U4lwpdZHNfXfDItOpEheHG7YoLo5y430zK+oU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612273497534279.9075658409919; Tue, 2 Feb 2021 05:44:57 -0800 (PST) Received: from localhost ([::1]:46510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6vzD-00005M-Db for importer@patchew.org; Tue, 02 Feb 2021 08:44:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6vud-0003N3-Ro for qemu-devel@nongnu.org; Tue, 02 Feb 2021 08:40:11 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:35446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6vua-0007Cw-DW for qemu-devel@nongnu.org; Tue, 02 Feb 2021 08:40:11 -0500 Received: by mail-wr1-x431.google.com with SMTP id l12so20510934wry.2 for ; Tue, 02 Feb 2021 05:40:08 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y83sm2943850wmc.12.2021.02.02.05.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 05:40:04 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 54C561FF8F; Tue, 2 Feb 2021 13:40:01 +0000 (GMT) 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=hf7ynIumjxT8747QQLhELSkjFJ2pAeJjBigreGwj8dE=; b=YABLiXeMGr3BBdL50nwfRSsnkNKABzChn1IbOnojpGsGDCWh5EaxL01BArDGV6OIBE 3ro+sEHrzQfpTDPruAYNlrYfSN8cuc/y6L1vkcoiGZHlW9wJkxyLCMq5duCyVHnebdjH H6dZkPDYe1dUATv3EpqL53vZzL41ddf476rFrjgIFxanmFytfoC75BuZSHyp92uMEU/M nWgFYIhADt2OFhKwh3Nibg+m2kNBX9j11fRysUwv+2z+JDJMgCdOOuRPVmaNKwUr0Ea/ p1kOrDsU9rKjGP3kzxPkZGP1iJN1Mw+9DSlPgDmH5BzWY9T35vGFx8WJNmiU+IIpCKSx lXIQ== 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=hf7ynIumjxT8747QQLhELSkjFJ2pAeJjBigreGwj8dE=; b=D4Ad2YeAsiErfKA95MH8WDm6o8/0wPU8fFiUNCVD1fht4bLknvIw/89Hyv1HSEc1uV CiWkmoq6uwNQqPT8xoIlPQnuEbEIVYCKmfCioSr8PzBsLZ5kV1DmTqJIfIxL3csGQKRy cnAA5ml8VphtcFdx9WX+V1TBDJfwQme6H6kYjnb0IGvTYBdH/CNXNdSMgGd/TmnwDFID tXbUJNFZ9VnSWpRqcqnmSzvKcT8anQC3cPSglGJ9WDTth2msQX7TO8XRRlPeBgcSBHcH Yv4GBhXbmmnLLP+r53JlX6+Cj+0T7fhGe1ccenJWP6IA6rPZUUagAJCKUSwqD2JTpDaa TVYg== X-Gm-Message-State: AOAM5330ycPG2IysGdC7F+nMb8qgVuYohmoZfaKemrd0E7KY46t3YbZE cem/8EB0bnX7VIF+y9v4kHe7RtTdbZ3H4UaB X-Google-Smtp-Source: ABdhPJxOzagu+nNcursGQTHP7HrU1VbbiR1bJ6ShOy9jJ0sD7BGJBEwXyPIB8yIgIA9+tCuO9DRT0w== X-Received: by 2002:a05:6000:1043:: with SMTP id c3mr24042762wrx.140.1612273207118; Tue, 02 Feb 2021 05:40:07 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 03/15] tests/docker: make _copy_with_mkdir accept missing files Date: Tue, 2 Feb 2021 13:39:48 +0000 Message-Id: <20210202134001.25738-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210202134001.25738-1-alex.bennee@linaro.org> References: <20210202134001.25738-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Depending on the linker/ldd setup we might get a file with no path. Typically this is the psuedo library linux-vdso.so which doesn't actually exist on the disk. Rather than try and catch these distro specific edge cases just shout about it and try and continue. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- tests/docker/docker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 0b4f6167b3..fb3de41c0b 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -103,7 +103,12 @@ def _copy_with_mkdir(src, root_dir, sub_path=3D'.'): pass =20 dest_file =3D "%s/%s" % (dest_dir, os.path.basename(src)) - copy(src, dest_file) + + try: + copy(src, dest_file) + except FileNotFoundError: + print("Couldn't copy %s to %s" % (src, dest_file)) + pass =20 =20 def _get_so_libs(executable): --=20 2.20.1