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

2024-12-17 Thread Shuah Khan
On 12/10/24 05:32, Shivam Chaudhary wrote: If the selftest is not running as root, it should skip not fail and give an appropriate warning to the user. This patch adds ksft_exit_skip() if the test is not running as root. Logs: Before change: TAP version 13 1..1 ok 1 # SKIP This test needs root

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

2024-12-10 Thread Shivam Chaudhary
If the selftest is not running as root, it should skip not fail and give an appropriate warning to the user. This patch adds ksft_exit_skip() 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