From patchwork Sun Nov 15 14:36:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1400446 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Vlb2n3iT; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CYvsS60H1z9sTL for ; Mon, 16 Nov 2020 01:36:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1466587272; Sun, 15 Nov 2020 14:36:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xOauNHwtnA2n; Sun, 15 Nov 2020 14:36:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 475B486F6E; Sun, 15 Nov 2020 14:36:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id D54AD1BF293 for ; Sun, 15 Nov 2020 14:36:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D2546861DD for ; Sun, 15 Nov 2020 14:36:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BerrHN6JRhxi for ; Sun, 15 Nov 2020 14:36:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 28AC1861D7 for ; Sun, 15 Nov 2020 14:36:18 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id 33so15863689wrl.7 for ; Sun, 15 Nov 2020 06:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GpWPQ7WHi+2hLKBVUf9lYIuOlI5/5JfxTazOM+SSY94=; b=Vlb2n3iTEY8Uc2iNkRWSfd3gyhlcWEnzl7QmquXWtHb/bFvSEP35dnx133PHA3J0eF IRKUjyXQDiI7elsLsouN2MKRdLzbIHC3hdyi/ZSMvftRyXx2YbNSEF/L4vhKCSfO1cvv XARn/9WJ0A/5Q6phtt1FgX497H3ZPSRDojK/JfcjEgFFvNs4+87oot+p3dqlnLCKulow D/gQRCIkjyJHsrsP1sy7j6R8z3evLYoQ6oVsTyqolqPSM0QIB5p5+VIAF8buU/f5iOBy pbSaeTTKhqWLW3LjamPqWKAIiExZaWmgb7/CIh6yH8wqCZc6qpS/2UWI1HrsuMFKu/tu gxSQ== 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=GpWPQ7WHi+2hLKBVUf9lYIuOlI5/5JfxTazOM+SSY94=; b=la7gXKlvg2X0994i3DNFSY5Y+hs4/0u29loxvrwsOaQ5ThHmzPoV2Gm532ga0oT1jL AbDMrHMXlEcztFXzDydpKluWDeLHOxL13SsyIl2qlBvpe7q6/1NgJHuT8BLCt+l9oYUi We0IYXvkayqWfqtpXzva4NQMa2FmiJABdNyFb+UtJAk93nMtJXzmauhs9x/0VkibUdeO rJ1SBG8Usa08NCYKLb8hvsHguazjm9W74a+iPcMrJYbNVUsRqWiRjSOJT7USv/VvJkAA NwbfytyaqLxXN0VzJLvcd0lV4/9YAdF7HMctgAuSw1dP7A+26A+Jfj/INsYP8smtOdvP qWZg== X-Gm-Message-State: AOAM533LHEXNBRY4Rshq9D65B2l5vG2/8yrJWqzmL0I7U/rxJID5EhZE gCrjFA9TIBQnfosQGzaiZN8naePI3aU= X-Google-Smtp-Source: ABdhPJwr1v52dOXkW++qwRc2Z1U4dYqC4OJLtsM7v84RIySYrQnChZ2Txcxq8DffQzAeyf7LVNV0pg== X-Received: by 2002:adf:a315:: with SMTP id c21mr14356495wrb.272.1605450976290; Sun, 15 Nov 2020 06:36:16 -0800 (PST) Received: from localhost.localdomain (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d3sm18754333wre.91.2020.11.15.06.36.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Nov 2020 06:36:15 -0800 (PST) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 15 Nov 2020 15:36:09 +0100 Message-Id: <20201115143609.2160080-4-romain.naour@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20201115143609.2160080-1-romain.naour@gmail.com> References: <20201115143609.2160080-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [=PATCH v3 4/4] support/scripts/boot-qemu-image.py: don't fail if start-qemu.sh is missing X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , "Yann E . MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When boot-qemu-image.py script was added, we wanted to run each qemu defconfig in gitlab, so we expect that all qemu defconfig generate the script start-qemu.sh in images directory. Don't make it a hard requirement even if we prefer to be able to do a runtime test for each qemu defconfig. Signed-off-by: Romain Naour Cc: Yann E. MORIN --- support/scripts/boot-qemu-image.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/support/scripts/boot-qemu-image.py b/support/scripts/boot-qemu-image.py index dbbba552ad..4066788c88 100755 --- a/support/scripts/boot-qemu-image.py +++ b/support/scripts/boot-qemu-image.py @@ -18,6 +18,10 @@ def main(): if not sys.argv[1].startswith('qemu_'): sys.exit(0) + if not os.path.exists('output/images/start-qemu.sh'): + print('qemu-start.sh is missing, cannot test.') + sys.exit(0) + qemu_start = os.path.join(os.getcwd(), 'output/images/start-qemu.sh') child = pexpect.spawn(qemu_start, ['serial-only'],