lkml.org 
[lkml]   [2017]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] selftests: timers: suppress "cd" output from run_destructive_tests target
Date
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 <shuahkh@osg.samsung.com>
---
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
\
 
 \ /
  Last update: 2017-08-22 21:12    [W:0.031 / U:5.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site