提交 9070ee31 编写于 作者: J Jeffrin Jose T 提交者: Shuah Khan (Samsung OSG)

selftests: intel_pstate: notification about privilege required to run intel_pstate testing script

The intel_pstate related testing script need root level privileges
when trying to access certain file for the successful execution of
the script.But this is not the case always like when using evaluation
only mode, which only require user level privilege.

This patch is to notify the user about the privilege the script
demands for the successful execution of the test.
Signed-off-by: NJeffrin Jose T (Rajagiri SET) <ahiliation@gmail.com>
Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
上级 5f8f0193
...@@ -38,6 +38,12 @@ if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then ...@@ -38,6 +38,12 @@ if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then
exit $ksft_skip exit $ksft_skip
fi fi
msg="skip all tests:"
if [ $UID != 0 ] && [ $EVALUATE_ONLY == 0 ]; then
echo $msg please run this as root >&2
exit $ksft_skip
fi
max_cpus=$(($(nproc)-1)) max_cpus=$(($(nproc)-1))
function run_test () { function run_test () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册