From nobody Sun May 19 00:42:51 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1638801403; cv=none; d=zohomail.com; s=zohoarc; b=eihyMUmXe+iPjLZhNSOD7gm+Io+CHj+A/MCHBxtqjwdyyxGs98MnT22YaOnaHRrI3kuPNVWbQB88vThcG4C19maIe3DM8rnrzrCtSQR0KCXcazHrvBLLpRj/gBQfk6fgaGgu8BWw/9dB2JZMODSa5QgeRwYLNl62w6tbrifP4go= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638801403; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Zwiq5QDNnfAUxOEgGhzWjSBwEN9X1B0M9kLanmp7gME=; b=BLIKjov1CRAq22C7QdWIJC5P42veVnX2aPpv7yJ0HL5vMAmvBlN9qWl+UtO/EBZcTRGSgZ1EKjrCG/gakrFvn58j35Vi7izwcWFIBi9kwrFuaHTFGq1VjrN48sUkTA9IvRlML9mEoxqTH/Bc/F5MTLz7ZJG/gVf7hx6oYqiwctw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638801403129597.8268338197586; Mon, 6 Dec 2021 06:36:43 -0800 (PST) Received: from localhost ([::1]:49290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muF6g-0001CP-3J for importer@patchew.org; Mon, 06 Dec 2021 09:36:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muF4M-0006Xa-FK for qemu-devel@nongnu.org; Mon, 06 Dec 2021 09:34:18 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:28123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muF4J-0004Ki-Sn for qemu-devel@nongnu.org; Mon, 06 Dec 2021 09:34:17 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-421-2OqSbFBPNV6cdVhvcmtQLg-1; Mon, 06 Dec 2021 09:34:10 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EC7511023F79; Mon, 6 Dec 2021 14:34:08 +0000 (UTC) Received: from thuth.com (unknown [10.39.194.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id 785DE5F4E1; Mon, 6 Dec 2021 14:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638801251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zwiq5QDNnfAUxOEgGhzWjSBwEN9X1B0M9kLanmp7gME=; b=agXrIvrxobUQQOAjM/B3A/80iwSJCpJ24ALzkFJ+ZUvDnrt7/g02AUncMLvsVrxsSRoUYx PW6kyyaClEZrV2MXwbAC1HEduzdQNkunlHa/JlvL42yaZwc69KLBCfVt4zLuWRunEXLsL7 cuZSMLlVePcnZdD+2P2o7hVG1oB4YA8= X-MC-Unique: 2OqSbFBPNV6cdVhvcmtQLg-1 From: Thomas Huth To: Kevin Wolf , Hanna Reitz , qemu-devel@nongnu.org Subject: [PATCH for-7.0] tests/qemu-iotests: Fix 051 for binaries without 'lsi53c895a' Date: Mon, 6 Dec 2021 15:34:04 +0100 Message-Id: <20211206143404.247032-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.619, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1638801404583100001 Content-Type: text/plain; charset="utf-8" The lsi53c895a SCSI adaptor might not be enabled in each and every x86 QEMU binary, e.g. it's disabled in the RHEL/CentOS build. Thus let's add a check to the 051 test so that it does not fail if this device is not available. Signed-off-by: Thomas Huth --- tests/qemu-iotests/051 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051 index 1d2fa93a11..e9042a6214 100755 --- a/tests/qemu-iotests/051 +++ b/tests/qemu-iotests/051 @@ -45,6 +45,10 @@ _supported_proto file _unsupported_imgopts 'refcount_bits=3D\([^1]\|.\([^6]\|$\)\)' data_file _require_drivers nbd =20 +if [ "$QEMU_DEFAULT_MACHINE" =3D "pc" ]; then + _require_devices lsi53c895a +fi + do_run_qemu() { echo Testing: "$@" --=20 2.27.0