Message ID | 20180927140837.24642-1-msys.mizuma@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=<UNKNOWN>) 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.b="SZcVD0kk"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42Lc9r308Xz9s3l for <incoming@patchwork.ozlabs.org>; Fri, 28 Sep 2018 00:09:03 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 0BCDA1A9618 for <incoming@patchwork.ozlabs.org>; Thu, 27 Sep 2018 16:09:01 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) by picard.linux.it (Postfix) with ESMTP id E2B843E6646 for <ltp@lists.linux.it>; Thu, 27 Sep 2018 16:08:58 +0200 (CEST) Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 10BB7100119F for <ltp@lists.linux.it>; Thu, 27 Sep 2018 16:08:58 +0200 (CEST) Received: by mail-qt1-x842.google.com with SMTP id c25-v6so2843963qtp.6 for <ltp@lists.linux.it>; Thu, 27 Sep 2018 07:08:58 -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; bh=UDskyNUpzmyZuX4IZT5zAg0gKhtG838bhkFDQk3LuO8=; b=SZcVD0kkKyLgPAEeEvkgUBMInVyPAC8o3FJxB1Fh5coRpBiHEgEYdSjZddjmyggFKH 4kywguqXnPvY+jIQIDF4ufMpwHbL0J9VPBnaOAcbuq8T9RTA6cY/IC8DDI8Ob3lbJmK9 WA0LyX5hbCiETSXDwDz1XknAZ176rzUQ0cjo1rKIo8aq3p+8ApVcgLhSxFnlA5TyrSRL UVuAtwNatYWJZQrAjrSMhASVWgQ8VTKeFhxgpMbHfZ+H9zr+in57WiMJImmZKgwvHPjV 7n4uV4ZlhQLMuuWWk2ICPayBVFoLQA1YMPTR/S7OWPa5TVKXMoxv9AeqoBZKCCgpcAnK xSsw== 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; bh=UDskyNUpzmyZuX4IZT5zAg0gKhtG838bhkFDQk3LuO8=; b=EDCGaXfNjgO/0LVKXmvQHcXpW/Vw2rczc/pPRaDcPGiHYA2Ld7pyh+u6JjWUXEijEv yMLJmY/nMWWpkAdVeiIPH7n60L2slLRy/Aj9/7DCGXCG6P3P1Vep0cqIVtm+E53hxVkn 9EKRpK1Q/YNSU8hWHz2/mgP/7egJLNtV7mlKkJYy+4EgchvAAcruSF86FJm7HgWUHcmx DQZ4/C6AJbtVOU02xgjpBwVy4RE4b4ILwFcC9h9C+J74zkoQ3nZtQUJAUEZYuhNBxz4V yKnFXwrocdSEmPfhiK9zvmej+skQdKIrVeBvKGjhBi84rMMef1aj4714KVIb11k9+SMV ZsIg== X-Gm-Message-State: ABuFfoi0jnjoMjTFm/LCU1sjOT+84d94HoYNa9bcbF8KgA9nGrXaNGOc sV5OYw7qogTFO5gYGZMLg55Nw+o= X-Google-Smtp-Source: ACcGV62mdCcOY93ITvdSO8Tmt98XLaa1jqHCS+bmuaYeJy1QMPE59Z83teZUHhgIiaxDt11MH+naPA== X-Received: by 2002:a0c:96f7:: with SMTP id b52-v6mr8094148qvd.175.1538057337116; Thu, 27 Sep 2018 07:08:57 -0700 (PDT) Received: from gabell.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id l132-v6sm1111834qke.33.2018.09.27.07.08.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 07:08:56 -0700 (PDT) From: Masayoshi Mizuma <msys.mizuma@gmail.com> To: Cyril Hrubis <chrubis@suse.cz>, ltp@lists.linux.it Date: Thu, 27 Sep 2018 10:08:37 -0400 Message-Id: <20180927140837.24642-1-msys.mizuma@gmail.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: clamav-milter 0.99.2 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-4.smtp.seeweb.it Cc: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> Subject: [LTP] [PATCH v2] ver_linux: use lscpu command result instead of /proc/cpuinfo X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project <ltp.lists.linux.it> List-Unsubscribe: <https://lists.linux.it/options/ltp>, <mailto:ltp-request@lists.linux.it?subject=unsubscribe> List-Archive: <http://lists.linux.it/pipermail/ltp/> List-Post: <mailto:ltp@lists.linux.it> List-Help: <mailto:ltp-request@lists.linux.it?subject=help> List-Subscribe: <https://lists.linux.it/listinfo/ltp>, <mailto:ltp-request@lists.linux.it?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> |
Series |
[v2] ver_linux: use lscpu command result instead of /proc/cpuinfo
|
expand
|
Hi! Applied, thanks.
diff --git a/ver_linux b/ver_linux index dda337926..320b624a1 100755 --- a/ver_linux +++ b/ver_linux @@ -96,5 +96,9 @@ echo 'free reports:' free echo -echo '/proc/cpuinfo' -cat /proc/cpuinfo +echo 'cpuinfo:' +if which lscpu > /dev/null 2>&1; then + lscpu +else + cat /proc/cpuinfo +fi