Re: [PATCH] selftests: acct: Add ksft_exit_fail if not running as root

2024-12-03 Thread Shuah Khan
On 11/15/24 12:17, Shivam Chaudhary wrote: If the selftest is not running as root, it should fail and give an appropriate warning to the user. This patch adds ksft_exit_fail_msg() if the test is not running as root. This change introduces a problem - skip is the right exit code when a test requ

[PATCH] selftests: acct: Add ksft_exit_fail if not running as root

2024-11-15 Thread Shivam Chaudhary
If the selftest is not running as root, it should fail and give an appropriate warning to the user. This patch adds ksft_exit_fail_msg() if the test is not running as root. Logs: Before change: TAP version 13 1..1 ok 1 # SKIP This test needs root to run! After change: TAP version 13 1..1 Bail