-q will prevent grep from writing to stdout and print "root" when make test is running as root. Signed-off-by: Damien Lespiau <damien.lespiau at intel.com> --- 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 -- 1.8.1.4