-q will prevent grep from writing to stdout and print "root" when make
test is running as root.

Signed-off-by: Damien Lespiau <[email protected]>
---
 tests/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 33db962..d32e944 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -166,7 +166,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
        @if [ "${IGT_SIMULATION}" == 1 ]; then \
                make TESTS="${simulation_tests}" check; \
-- 
1.7.11.7

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to