selftests/kexec: define "require_root_privileges"

Many tests require root privileges.  Define a common function.

Suggested-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
Mimi Zohar 2019-03-06 11:19:45 -05:00 • committed by Shuah Khan
commit c660a81796
2 changed files with 8 additions and 3 deletions