On Tue, Jan 11, 2022 at 02:05:31AM +0300, Maxim Dounin wrote:
The test suite can be run as root, but, given that nginx switches to a non-privileged user by default (https://nginx.org/r/user), and temporary directory is only readable by the owner, running test suite as root requires some additional tuning for most of the tests to work, e.g.:
# TEST_NGINX_GLOBALS="user root wheel;" prove ssi_waited.t
The fact that the test suite by default is expected to be run under a normal user is already in the README, though may be in somewhat obscure form: note the "$ " prompt in the usage example.
That makes sense, thanks for the explanation! I wished this was on the README somewhere, would have spared me some time though :-)