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.
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 thetest_check()
hook. In the case of non-root execution, tests requiring root could be skipped.