[PATCH i-g-t 5/5] build: Make grep silent with running make test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-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 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



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux