Re: [PATCH v7 1/2] selftests: tmpfs: Add Test-skip if not run as root

2025-01-03 Thread Shuah Khan
On 1/3/25 09:36, Shivam Chaudhary wrote: On 03/01/25 3:24 AM, Shuah Khan wrote: On 1/2/25 03:04, Shivam Chaudhary wrote: Add 'ksft_exit_skip()', if  not run as root, with an appropriate Warning. Add 'ksft_print_header()' and 'ksft_set_plan()' to structure test outputs more effectively. Test

Re: [PATCH v7 1/2] selftests: tmpfs: Add Test-skip if not run as root

2025-01-03 Thread Shivam Chaudhary
On 03/01/25 3:24 AM, Shuah Khan wrote: On 1/2/25 03:04, Shivam Chaudhary wrote: Add 'ksft_exit_skip()', if  not run as root, with an appropriate Warning. Add 'ksft_print_header()' and 'ksft_set_plan()' to structure test outputs more effectively. Test logs: Before Change: - Without root   er

Re: [PATCH v7 1/2] selftests: tmpfs: Add Test-skip if not run as root

2025-01-02 Thread Shuah Khan
On 1/2/25 03:04, Shivam Chaudhary wrote: Add 'ksft_exit_skip()', if not run as root, with an appropriate Warning. Add 'ksft_print_header()' and 'ksft_set_plan()' to structure test outputs more effectively. Test logs: Before Change: - Without root error: unshare, errno 1 - With root No, o

[PATCH v7 1/2] selftests: tmpfs: Add Test-skip if not run as root

2025-01-02 Thread Shivam Chaudhary
Add 'ksft_exit_skip()', if not run as root, with an appropriate Warning. Add 'ksft_print_header()' and 'ksft_set_plan()' to structure test outputs more effectively. Test logs: Before Change: - Without root error: unshare, errno 1 - With root No, output After change: - Without root TAP vers