aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-25 11:40:57 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-25 11:40:57 +0100
commite0d08d6958cfc8d2fbe3fcd482861de93dba8030 (patch)
tree1b81650060c7d43059a44c536b03ee907be958a2
parentb671c48c34b6f4f7d7e36966940e53968f45cf6c (diff)
test-media: postpone the dmesg command
Make sure test-media is called as root before running dmesg since this may require root permissions. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xcontrib/test/test-media3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index ccd9fb84..80da382b 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -38,7 +38,6 @@ if [ $kobj_rel -eq 1 ]; then
fi
cur_lvl=`cut -c 1-2 /proc/sys/kernel/printk`
-dmesg -n notice
if [ -z "$1" ]; then
echo "usage: test-media [options] test-targets"
@@ -67,6 +66,8 @@ if [ `id -u` -ne 0 ]; then
exit -1
fi
+dmesg -n notice
+
while [ ! -z "$1" ]; do
case "$1" in
-unload)

Privacy Policy