From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938128AbdEYNBS (ORCPT ); Thu, 25 May 2017 09:01:18 -0400 Received: from omzsmtpe03.verizonbusiness.com ([199.249.25.208]:59457 "EHLO omzsmtpe03.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938112AbdEYM7b (ORCPT ); Thu, 25 May 2017 08:59:31 -0400 X-IronPort-Anti-Spam-Filtered: false From: "Levin, Alexander (Sasha Levin)" X-IronPort-AV: E=Sophos;i="5.38,391,1491264000"; d="scan'208";a="358082855" To: "mingo@kernel.org" CC: "linux-kernel@vger.kernel.org" , "ben@decadent.org.uk" , "a.p.zijlstra@chello.nl" , "tglx@linutronix.de" Subject: [PATCH 21/21] tools: liblockdep: hide liblockdep output from test results Thread-Topic: [PATCH 21/21] tools: liblockdep: hide liblockdep output from test results Thread-Index: AQHS1Vasr4fLuTgpsE+uXuqsoT+3Zg== Date: Thu, 25 May 2017 12:58:58 +0000 Message-ID: <20170525130005.5947-22-alexander.levin@verizon.com> References: <20170525130005.5947-1-alexander.levin@verizon.com> In-Reply-To: <20170525130005.5947-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v4PD27lc004086 This would prevent the liblockdep error messages from getting mixed in with the test result output. Signed-off-by: Sasha Levin --- tools/lib/lockdep/run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/lockdep/run_tests.sh b/tools/lib/lockdep/run_tests.sh index 3fd297bd5fcb..f9b94098fc98 100755 --- a/tools/lib/lockdep/run_tests.sh +++ b/tools/lib/lockdep/run_tests.sh @@ -6,7 +6,7 @@ for i in `ls tests/*.c`; do testname=$(basename "$i" .c) gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null echo -ne "$testname... " - if [ $(timeout 1 ./tests/$testname | wc -l) -gt 0 ]; then + if [ $(timeout 1 ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then echo "PASSED!" else echo "FAILED!" @@ -20,7 +20,7 @@ for i in `ls tests/*.c`; do testname=$(basename "$i" .c) gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null echo -ne "(PRELOAD) $testname... " - if [ $(timeout 1 ./lockdep ./tests/$testname | wc -l) -gt 0 ]; then + if [ $(timeout 1 ./lockdep ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then echo "PASSED!" else echo "FAILED!" -- 2.11.0