From nobody Tue Sep 9 03:38:40 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1749732699; cv=none; d=zohomail.com; s=zohoarc; b=dFJTnHDf8a6VvUQNaYlTHXSrRre4/+QimF24G05w+brjr01u+R+s35aekgxECmz/IzcS6rAtGEbD8V0smbGyuRM4W/hTkDi+Q8uSfX4dwQvxx1Ut+kQNdyxjQHEde195Uf+3rUNmB0HLw5S8hMv5cEnAHPqUyqcBiSaD6F1KwxA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1749732699; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=ec0bur1pCzOiGpF4LkZTzP2TPSGFY+PHfLQUde8nzHk=; b=Fo8F2JeFTKdE6PyOzD8W3LZg17TvwxmtnMjH+SJVWgk0e+h3PaFhwemfUwsf1utTLzcwo4PjUc6sJE4rHgZNke/7RqYepb++PrP8w/FdoZclC9d8x8B5rCi+5AIDZHGf+xnW2eeDhMgrGp0wn1qMtJS5y7ihPejxz15Gi0aqJGQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1749732699767460.4257750422072; Thu, 12 Jun 2025 05:51:39 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id CFC5A12FF; Thu, 12 Jun 2025 08:51:38 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id C6F0611C4; Thu, 12 Jun 2025 08:49:18 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 87B0F1187; Thu, 12 Jun 2025 08:49:11 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id BB585DAE for ; Thu, 12 Jun 2025 08:49:01 -0400 (EDT) Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-175-BpxU3QETPXysvjixgZiz2Q-1; Thu, 12 Jun 2025 08:49:00 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 40EA01800288 for ; Thu, 12 Jun 2025 12:48:59 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.3.236]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7F301195609D for ; Thu, 12 Jun 2025 12:48:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1749732541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uyeJYCTo5Ztkcf3HhD/ER5bO3QU36gi6vumiwVCXvng=; b=D+0iFMLdtpgEqqrehCOT4ZC/CDkJD2FC89mL8zILCY8RbplesrGANiTa5++cZayo3x4Ow4 9FnDrWZE/KB35sF3zt90sp8XRsJSL+gxBfmce1He+nGm1LARz6IcfZd+XH3OKKYiqQb4/j JJOMRXv1cz/QCB3Wt4lsRYsT3UJKb1o= X-MC-Unique: BpxU3QETPXysvjixgZiz2Q-1 X-Mimecast-MFC-AGG-ID: BpxU3QETPXysvjixgZiz2Q_1749732539 To: devel@lists.libvirt.org Subject: [PATCH 07/15] virt-aa-helper-test: Silence ls Date: Thu, 12 Jun 2025 14:48:39 +0200 Message-ID: <48d31790ead792d86f56596f7dad843918bcb81e.1749732372.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: TIGipFu0KWf41xwwiRHz_AMde6R_jBpNxeKkCRmHnBU_1749732539 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: UJG3TXUILTDMEALG436UPOKPXATZFTKB X-Message-ID-Hash: UJG3TXUILTDMEALG436UPOKPXATZFTKB X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1749732702014116600 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik virt-aa-helper checks presence of files before it adds them into a profile. Because of that, test cases inside of virt-aa-helper-test that require presence of /boot/initrd* are guarded by a check. The check uses ls to find at least one initrd file. If there's none, then ls prints an error onto stderr. This is not helpful because the test script prints a message on its own right after. Signed-off-by: Michal Privoznik --- tests/virt-aa-helper-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/virt-aa-helper-test b/tests/virt-aa-helper-test index 8259c2679f..e462e46570 100755 --- a/tests/virt-aa-helper-test +++ b/tests/virt-aa-helper-test @@ -201,7 +201,7 @@ testme "1" "bad disk2" "-c -u $valid_uuid" "$test_xml" sed -e "s,###UUID###,$uuid,g" -e "s,###DISK###,$disk1,g" -e "s,,= ,g" "$template_xml" > "$test_xml" testme "1" "malformed xml" "-c -u $valid_uuid" "$test_xml" =20 -initrd=3D`ls -1 /boot/initrd* | head -1` +initrd=3D`ls -1 /boot/initrd* 2>/dev/null | head -1` if [ -z "$initrd" ]; then echo "Skipping /boot/initrd* tests. Could not find /boot/initrd*" else --=20 2.49.0