testsuite: run dmesg with sudo

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>
This commit is contained in:
Luca Boccassi 2018-08-22 19:09:03 +01:00 committed by Stephen Hemminger
parent 012895ce4e
commit 88ecd4873b

View 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