diff mbox series

[iproute2,3/3] testsuite: run dmesg with sudo

Message ID 20180822180903.26443-3-bluca@debian.org
State Accepted, archived
Delegated to: stephen hemminger
Headers show
Series [iproute2,1/3] testsuite: remove all temp files and implement make clean | expand

Commit Message

Luca Boccassi Aug. 22, 2018, 6:09 p.m. UTC
Some distributions like Debian nowadays restrict the dmesg command to
root-only. Run it with sudo in the testsuite.

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 testsuite/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/testsuite/Makefile b/testsuite/Makefile
index 5e269877..ef45d5a7 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -79,5 +79,5 @@  endif
 			echo "PASS"; \
 		fi; \
 		rm "$$TMP_ERR" "$$TMP_OUT"; \
-		dmesg > $(RESULTS_DIR)/$@.$$o.dmesg; \
+		sudo dmesg > $(RESULTS_DIR)/$@.$$o.dmesg; \
 	done