Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jeffrin Jose T (Rajagiri SET) <ahiliation@gmail.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>

authored by

Jeffrin Jose T and committed by
Shuah Khan (Samsung OSG)
9070ee31 5f8f0193

+6
+6
tools/testing/selftests/intel_pstate/run.sh
··· 38 38 exit $ksft_skip 39 39 fi 40 40 41 + msg="skip all tests:" 42 + if [ $UID != 0 ] && [ $EVALUATE_ONLY == 0 ]; then 43 + echo $msg please run this as root >&2 44 + exit $ksft_skip 45 + fi 46 + 41 47 max_cpus=$(($(nproc)-1)) 42 48 43 49 function run_test () {