From patchwork Mon Feb 8 12:38:09 2021 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: 378568 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4874451jah; Mon, 8 Feb 2021 09:34:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyo/YB6H/TUQU2EvVa3STkeyLScLgrm0pW1XIIOklRUPBMSmKVktKdM4I718pIsjGlAP2tf X-Received: by 2002:a25:b74c:: with SMTP id e12mr28692343ybm.20.1612805697505; Mon, 08 Feb 2021 09:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612805697; cv=none; d=google.com; s=arc-20160816; b=Mbf+nMYSAa/eqycVr8QStwOnh/A/GP1/YpO7UNlUEI8TVGfjt490pwbo4R34h9RNEC XaeLw0u808AI4cfQ32haYMxPXP2QIrWhXMC4MdIX75p3HOAQnxKumdB93GfwUIGGU5jT 9HfE2YKZUvN0WLHSmz7DMeKcvJmqBze+UXSTwJgl+UzgwHeg+DvNOHOycG7HSyScoSlk F1dW3jSXI/72b0ghP72pGSYlvaqXkNem+qCmy2jVNvcZTlCdI/Ba8FS6mk5qqGQv2KyC oYnoDxm+22IapJ8bBtX7QMR7hO1dV4xnOQ2M22KIsxYhGfxnOU92jpBY3Z+HAWZjAsHf wCvA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=/C/IeWDEzIaP4F9kXntszm+mIX88m1SsEC/60p2ki5M=; b=uHG6ZMwyjxE+QF+49qDbIv/FMdrGFhosBVZ4bSN2A5JYO3bdyfkiKhXCjT3JmswyV0 9os5Ejyrysan9l7fl1hjXIqz46vnIQQPVnpQ4eC1CUUsLaG74lSygvrDafSetv2BR/Cb WHJdMR6iYzUCI4g5BrjC0qOiCN/Zeh3gA9cppUJurQsoD50poTQekjUyIWUAJFbjewLO J1pSJVWF1PVy0XSvXVe2tg2CqkEPEsk41bVZlHndx78aSxhOCwR3+SmJ11z4PmHV161f yzRypVdyhSkccurIM0/fk9RFbd+hrhcsP5w8kzKB0ULGu2LOaXwNJhbigdRJx+MvkrUL c+Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vPVQrLjs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id k206si2968244ybk.30.2021.02.08.09.34.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Feb 2021 09:34:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vPVQrLjs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:58032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9AR6-0006f6-UB for patch@linaro.org; Mon, 08 Feb 2021 12:34:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l95p9-0003fk-U9 for qemu-devel@nongnu.org; Mon, 08 Feb 2021 07:39:30 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:41949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l95oh-0007iV-I8 for qemu-devel@nongnu.org; Mon, 08 Feb 2021 07:39:12 -0500 Received: by mail-wr1-x433.google.com with SMTP id n6so4078442wrv.8 for ; Mon, 08 Feb 2021 04:38:31 -0800 (PST) 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=/C/IeWDEzIaP4F9kXntszm+mIX88m1SsEC/60p2ki5M=; b=vPVQrLjs6lLkXHYQF/pVoyuIbGP0sf3F5NA13rvPmuxDGiPVNrhIFGFF3moMQeRU+7 I33o5nFtjHScRcBZAG7Xg3RgG3GASwUj83Q8I7BQz9FeR4yh+p+rc/q5K4fj0AjcT+Af UlStFgJi2HEstONwksCOc9k0ZJ1jvjrRAhf0ak8CgxPbxet3UIuOI8keNds+xSQ6JUGq HOi72dGfoLKDEnzU/pt+U/xH4q42B55+n+BmPhIX5a8tQiqmN4t4pufnKUZkpmWBfaty ggpM5tHxJ75kxCERNMbmZLvFgCwcYfHwX1kSThSqWgPtik8n89SZFc0wuQjfq15sVMnY hNsw== 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=/C/IeWDEzIaP4F9kXntszm+mIX88m1SsEC/60p2ki5M=; b=YmP0pFDCq5veYhUV9nFzSqsXeaXqKaIgq+djgN/stSHhtoMVu1NvDKI7e6CQIN1xIk fZDzeiwiqLkJHWnkiyOhONGtpAdqhmeFaJxVKHStPiwEB9RM2LQRLgmUJJRNaU1hgGus tApHIc+a3Sd2WSQFTxOdjQU4obTEYnITGFzy6Bg/u1knjBG1geKEIHtLZ8EeGNuES6F0 xtBxJ+rZ+06JG2G6XLW6I/vjxP2czIjYjiduiNmJkut5CwGoXCYfx9yCLNFt5qf3WPuT C/+llQ1QVDrM7Tsm00AQDtboripBOks76whd08F83vWUb7MPH9jX5c+oAf6nPXWyIcUk fgig== X-Gm-Message-State: AOAM530i2VJsHx16Np80jO0bpEB8oI5U4WCU5Z9v7oQUWA9T6ZM1f4In koNaJYl15N5rUmQj7urYMwWsvg== X-Received: by 2002:adf:d085:: with SMTP id y5mr20183417wrh.41.1612787910014; Mon, 08 Feb 2021 04:38:30 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id v11sm14235741wrr.3.2021.02.08.04.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 04:38:24 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 193A91FF90; Mon, 8 Feb 2021 12:38:22 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 04/16] tests/docker: make _copy_with_mkdir accept missing files Date: Mon, 8 Feb 2021 12:38:09 +0000 Message-Id: <20210208123821.19818-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210208123821.19818-1-alex.bennee@linaro.org> References: <20210208123821.19818-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.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=unavailable 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_Mathieu-Daud=C3=A9?= , =?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" 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ée Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210202134001.25738-4-alex.bennee@linaro.org> -- 2.20.1 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='.'): pass dest_file = "%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 def _get_so_libs(executable):