Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753071AbdHVTLP (ORCPT ); Tue, 22 Aug 2017 15:11:15 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:39978 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753045AbdHVTLN (ORCPT ); Tue, 22 Aug 2017 15:11:13 -0400 From: Shuah Khan To: john.stultz@linaro.org, shuah@kernel.org Cc: Shuah Khan , tglx@linutronix.de, sboyd@codeaurora.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: timers: suppress "cd" output from run_destructive_tests target Date: Tue, 22 Aug 2017 13:11:07 -0600 Message-Id: <20170822191107.21584-3-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170822191107.21584-1-shuahkh@osg.samsung.com> References: <20170822191107.21584-1-shuahkh@osg.samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1444 Lines: 40 Suppress "cd" output from run_destructive_tests while running tests to declutter the test results. Running timers run_destructive_tests: make --silent -C tools/testing/selftests/timers run_destructive_tests Before the change: /lkml/linux_4.13/tools/testing/selftests/timers ntpd: no process found Maybe you're not running as root? selftests: change_skew [FAIL] /lkml/linux_4.13/tools/testing/selftests/timers After the change: ntpd: no process found Maybe you're not running as root? selftests: change_skew [FAIL] Signed-off-by: Shuah Khan --- tools/testing/selftests/timers/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile index 6c1327278d5f..4ed9e45c7f38 100644 --- a/tools/testing/selftests/timers/Makefile +++ b/tools/testing/selftests/timers/Makefile @@ -20,7 +20,7 @@ define RUN_DESTRUCTIVE_TESTS echo "selftests: Warning: file $$BASENAME_TEST is not executable, correct this.";\ echo "selftests: $$BASENAME_TEST [FAIL]"; \ else \ - cd `dirname $$TEST`; (./$$BASENAME_TEST && echo "selftests: $$BASENAME_TEST [PASS]") || echo "selftests: $$BASENAME_TEST [FAIL]"; cd -;\ + cd `dirname $$TEST` > /dev/null; (./$$BASENAME_TEST && echo "selftests: $$BASENAME_TEST [PASS]") || echo "selftests: $$BASENAME_TEST [FAIL]"; cd - > /dev/null;\ fi; \ done; endef -- 2.11.0