From nobody Mon Feb 9 12:15:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1608049983; cv=none; d=zohomail.com; s=zohoarc; b=nFjbNaiL91FIqm8nFEajphinB5hgZz1sZd2tFCjCRfvUwT5U/lH1TvQSblBIzIf2hnrCKT5ZB8J87MgvFKdAQt2TumPKCoaHTOymkkVMEGy4C6JDJuQOQxWy98euM+rOuNZEd0v/nYAxefri6g8bET0FA5Ig6jlKBrb9IzD3Blc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608049983; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=0XJwXy20bfCt1n0mfvyS/j2dMXIoAO3eP2ScW3iMaLA=; b=ajzFnArq3JK517GC1PJN9kK4k5N4sql45lcJqyfm4Xj4fC6QXlPR0XhoRviUdtxUACE0pIYiPhX9FgHRmDrbbixuMtBA41X9Cwt4kdW5f3mSwOYTqH+rsZXP16NsZVSAkRjJMXQ5rSQtzMkJCfKqqmpnMWU5wkbzCpdeDDRxohY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1608049982616729.4621110549451; Tue, 15 Dec 2020 08:33:02 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-239-rZUP9aWkPQKAy75k4dBKCA-1; Tue, 15 Dec 2020 11:32:51 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D1451007300; Tue, 15 Dec 2020 16:31:57 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 78A511E5; Tue, 15 Dec 2020 16:31:57 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3CE1B50033; Tue, 15 Dec 2020 16:31:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0BFGPbYR025791 for ; Tue, 15 Dec 2020 11:25:37 -0500 Received: by smtp.corp.redhat.com (Postfix) id B79CF5D9E4; Tue, 15 Dec 2020 16:25:37 +0000 (UTC) Received: from work.redhat.com (ovpn-114-20.ams2.redhat.com [10.36.114.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id EB6985D9E3; Tue, 15 Dec 2020 16:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608049978; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=0XJwXy20bfCt1n0mfvyS/j2dMXIoAO3eP2ScW3iMaLA=; b=EjGc9Bz+oKr6c87dQkNeQIyRKX04x1tDC8gfXzxmbSyOoNMmcW2HFVAHe8mB8eUxBMUz+E hsGlCHtOvG///65kX192r7Ap/I91PhsQG26XmO8aFhfkxMCjiZom7rCb3+A0MquR2R5X2k wGV0BjBnjd+5bOZQPCv+IKABkNoyo/A= X-MC-Unique: rZUP9aWkPQKAy75k4dBKCA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 18/29] cpu-parse: Move model name detection to new script Date: Tue, 15 Dec 2020 17:25:04 +0100 Message-Id: <20201215162515.53742-19-twiederh@redhat.com> In-Reply-To: <20201215162515.53742-1-twiederh@redhat.com> References: <20201215162515.53742-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- tests/cputestdata/cpu-gather.py | 1 + tests/cputestdata/cpu-parse.sh | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/cputestdata/cpu-gather.py b/tests/cputestdata/cpu-gather= .py index 7c51a47353..0b1019456c 100755 --- a/tests/cputestdata/cpu-gather.py +++ b/tests/cputestdata/cpu-gather.py @@ -196,6 +196,7 @@ def parse(args): data =3D json.load(sys.stdin) =20 os.environ["CPU_GATHER_PY"] =3D "true" + os.environ["model"] =3D data["name"] output =3D subprocess.check_output( "./cpu-parse.sh", input=3Doutput_to_text(data), diff --git a/tests/cputestdata/cpu-parse.sh b/tests/cputestdata/cpu-parse.sh index fa4344b6ad..5b8e57e427 100755 --- a/tests/cputestdata/cpu-parse.sh +++ b/tests/cputestdata/cpu-parse.sh @@ -7,8 +7,6 @@ fi =20 data=3D`cat` =20 -model=3D`sed -ne '/^model name[ ]*:/ {s/^[^:]*: \(.*\)/\1/p; q}' <<<"$dat= a"` - fname=3D`sed -e 's/^ *//; s/ *$//; s/[ -]\+ \+/ /g; --=20 2.26.2