dracut icon indicating copy to clipboard operation
dracut copied to clipboard

test: support non-root unit tests

Open ddiss opened this issue 4 years ago • 1 comments

While working on unit tests for Dracut's cpio utilities I was hoping to be able to run them as a non-root user. This doesn't appear to be currently possible, due to the $EUID" == "0" assertions scattered throughout. It'd be nice if the requirement for root could be specified on a per-test basis via the test_check() hook. In the case of non-root execution, tests requiring root could be skipped.

ddiss avatar Mar 10 '21 11:03 ddiss

:+1:

haraldh avatar Mar 10 '21 13:03 haraldh