Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2F42C4743C for ; Fri, 4 Jun 2021 19:03:16 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE3B6613FA for ; Fri, 4 Jun 2021 19:03:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE3B6613FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DDC8482F0D; Fri, 4 Jun 2021 21:02:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="asLQRFaF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BE0A582EF0; Fri, 4 Jun 2021 21:02:50 +0200 (CEST) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1129082EBF for ; Fri, 4 Jun 2021 21:02:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x52a.google.com with SMTP id dg27so12278227edb.12 for ; Fri, 04 Jun 2021 12:02:46 -0700 (PDT) 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=9cJyEOVJGvCb9hOXdnwedvJJlc+Vv7SJYdBYVwmbtrc=; b=asLQRFaFmqNucWk+1MmAJRinUaDaIU3lNbbMaAa27NWC0B1ZPRe0qgnxQ7SClOmKBx dpgevIgsxX0rs3na4a+2Z2wk9dSfv144oIQkUdUF/WM3f1DFskKxAgNXRK7YhMNfgf5h QqJvJyuKuxH6teLI8ZrXIiw+w6dwJG2VXPgtjEwzdlto0+SxGlLjKEWg/rn3vbRe1lRm NoBAP7kUrzZr1tvqkIhLDK+hfDFAp+WQH4i+mBJX/Ev25TF+zbJoYyOnyEeutyy5Gida rEq5Hig/YUFRg9YHXmwggAy5ZA/2FWUQxjPP6d2goQqEPuTpdOkgJLcQm5j9YeFE0Vgq GQFg== 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=9cJyEOVJGvCb9hOXdnwedvJJlc+Vv7SJYdBYVwmbtrc=; b=P3HxP+jtjQyVYl/8acGrXB4Xl4sAlYw2y6yUSZTbzCp5Rs/3JJNqg31+/Iv0yixbIV rD90upaf2AEZo17klS8epMFVg97cxUaIsodLV4Lq//eJfuwoIduDOcXTmJyz11+plcqS /tDOhlBUCq0/5mqiq0z2RIdwchgGoFyCYtvtEpzTRlM8s30daRGCWE/RVV3dwUuaAcHK 2H0mfwkd8nNBU7RWPRafe2uj3fLTxe0aA1+KQ96ZDX3I30il1oxuNRBX0bh+S36J42aV nm1HpRJiYViN2vJbspvzhp6MX4oxsw37h6W402AmhvMwecjqqwPgU1qSzBJGDgdNFRxU DM5A== X-Gm-Message-State: AOAM530CdBQ4qxfCzKsvIIxgn6RLMoCupwLHQxC8hqu4x181BU+3ETkG mvB944gTkBW/jcEHK+Egr6wXbY9UBUE= X-Google-Smtp-Source: ABdhPJxvBJC73x9q3KBpMGJE/96w8IrnR3Z3o1raDuRS7OggwIN+wXbvpO1PqTV6fc9kyMD3hksi8Q== X-Received: by 2002:a05:6402:3101:: with SMTP id dc1mr6214044edb.324.1622833365566; Fri, 04 Jun 2021 12:02:45 -0700 (PDT) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id n2sm3668819edi.32.2021.06.04.12.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 12:02:45 -0700 (PDT) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Bin Meng , Heinrich Schuchardt , Tom Rini , Daniel Schwierzeck , Simon Glass , Marek Vasut , Alper Nebi Yasak Subject: [PATCH 2/4] Azure: Add fuse device for sandbox test.py tests Date: Fri, 4 Jun 2021 22:02:04 +0300 Message-Id: <20210604190207.44805-3-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.32.0.rc2 In-Reply-To: <20210604190207.44805-1-alpernebiyasak@gmail.com> References: <20210604190207.44805-1-alpernebiyasak@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean The EFI secure boot and capsule test setups need to prepare disk images for their tests using virt-make-fs, which requires access to the host fuse device. This is not exposed to the docker container by default and has to be added explicitly. Since these tests are marked to run only on the sandbox board, add the fuse device only when testing on sandbox. Signed-off-by: Alper Nebi Yasak --- .azure-pipelines.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 35ab7f30b276..a4d796c41895 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -318,7 +318,15 @@ jobs: # as sandbox testing need create files like spi flash images, etc. # (TODO: clean up this in the future) chmod 777 . - docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh + # Some EFI tests need extra docker args to run + set -- + if [[ "${TEST_PY_BD}" == "sandbox" ]]; then + # virt-make-fs needs the fuse device + if modprobe fuse; then + set -- "$@" --device /dev/fuse:/dev/fuse + fi + fi + docker run "$@" -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh - job: build_the_world displayName: 'Build the World' -- 2.32.0.rc2