Message ID | 452bdc64251360e5e31209d19ea84921152f4517.1543294426.git.misono.tomohiro@jp.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: sub: Relax the privileges of "subvolume list/show" | expand |
diff --git a/tests/common b/tests/common index 1575ae38..16693ca7 100644 --- a/tests/common +++ b/tests/common @@ -314,6 +314,16 @@ check_global_prereq() fi } +check_testuser() +{ + id -u nobody > /dev/null 2>&1 + if [ $? -ne 0 ]; then + _not_run "Need to add user \"nobody\"" + fi + # Note that nobody should not have root privileges + # otherwise test may not run as expected +} + check_image() { local image