From 6a82b68e3689e5a5d67fa39aaa0dcf97cb632107 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 26 Mar 2013 15:14:56 +0000 Subject: [PATCH] build: Make grep silent when running make test -q will prevent grep from writing to stdout and print "root" when make test is running as root. Signed-off-by: Damien Lespiau --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 9bc5302..834fb7c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -143,7 +143,7 @@ TESTS = \ $(NULL) test: - @whoami | grep root || ( echo ERROR: not running as root; exit 1 ) + @whoami | grep -q root || ( echo ERROR: not running as root; exit 1 ) @./check_drm_clients @make TESTS="${kernel_tests}" check -- 2.7.4