]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
testsuite: run dmesg with sudo
authorLuca Boccassi <bluca@debian.org>
Wed, 22 Aug 2018 18:09:03 +0000 (19:09 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 25 Aug 2018 06:14:09 +0000 (23:14 -0700)
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>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
testsuite/Makefile

index 39bf1d4eb454c22c29eed67da44f627252976c03..d1ac997d7919c7bc4110ed20fa4087bc91f010ec 100644 (file)
@@ -85,5 +85,5 @@ endif
                        echo "PASS"; \
                fi; \
                rm "$$TMP_ERR" "$$TMP_OUT"; \
-               dmesg > $(RESULTS_DIR)/$@.$$o.dmesg; \
+               sudo dmesg > $(RESULTS_DIR)/$@.$$o.dmesg; \
        done