* bug#35047: "Running the Test Suite" root user
@ 2019-03-30 12:47 mikadoZero
2019-03-30 13:50 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 3+ messages in thread
From: mikadoZero @ 2019-03-30 12:47 UTC (permalink / raw)
To: 35047
Looking at "2.3 Running the Test Suite" of the manual it does not
mention that tests should be run as a non root user.
The test `tests/pack` fails when `make check` is run as a root user. It
does not fail when run as a non root user. I found this example by
running `make check TESTS="tests/pack.scm"`. Is this an issue for many
tests?
I can prepare a patch for the relevant part (parts if this also applies
to `make check-system` as well) in "2.3 Running the Test Suite" of the
manual.
Should `make check-system` also be run as a non root user to avoid
failing tests?
Is there a section in the manual that explains why tests should not be
run as a root user which I can just refer to in the patch? If not could
anyone provide an explanation which I could include in the patch?
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#35047: "Running the Test Suite" root user
2019-03-30 12:47 bug#35047: "Running the Test Suite" root user mikadoZero
@ 2019-03-30 13:50 ` Tobias Geerinckx-Rice
2019-03-30 15:30 ` mikadoZero
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-03-30 13:50 UTC (permalink / raw)
To: mikadoZero; +Cc: 35047
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
mikadoZero,
mikadoZero wrote:
> Looking at "2.3 Running the Test Suite" of the manual it does
> not
> mention that tests should be run as a non root user.
I guess this is one of those (Unix-)cultural knowledge things: it
wouldn't even occur to me to build or test anything as root unless
explicitly asked to do so :-)
> The test `tests/pack` fails when `make check` is run as a root
> user. It
> does not fail when run as a non root user. I found this example
> by
> running `make check TESTS="tests/pack.scm"`. Is this an issue
> for many
> tests?
>
> I can prepare a patch for the relevant part (parts if this also
> applies
> to `make check-system` as well) in "2.3 Running the Test Suite"
> of the
> manual.
Thanks for the offer! I think adding yet another gotcha to the
manual should be a last resort, though. Many people still miss
them and get into trouble (and on to IRC).
Could we, in order of preference:
- make these tests pass even when run as root? (I guess not?)
- skip them and add ‘n tests not run as root’ to the final tally?
- refuse to even start the test suite as root?
What ‘root’ means here will depend on why these tests are failing.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#35047: "Running the Test Suite" root user
2019-03-30 13:50 ` Tobias Geerinckx-Rice
@ 2019-03-30 15:30 ` mikadoZero
0 siblings, 0 replies; 3+ messages in thread
From: mikadoZero @ 2019-03-30 15:30 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 35047
Tobias Geerinckx-Rice writes:
> mikadoZero,
>
> mikadoZero wrote:
>> Looking at "2.3 Running the Test Suite" of the manual it does not
>> mention that tests should be run as a non root user.
>
> I guess this is one of those (Unix-)cultural knowledge things: it
> wouldn't even occur to me to build or test anything as root unless
> explicitly asked to do so :-)
>
>> The test `tests/pack` fails when `make check` is run as a root user.
>> It
>> does not fail when run as a non root user. I found this example by
>> running `make check TESTS="tests/pack.scm"`. Is this an issue for
>> many
>> tests?
>>
>> I can prepare a patch for the relevant part (parts if this also
>> applies
>> to `make check-system` as well) in "2.3 Running the Test Suite" of
>> the
>> manual.
>
> Thanks for the offer! I think adding yet another gotcha to the manual
> should be a last resort, though. Many people still miss them and get
> into trouble (and on to IRC).
>
> Could we, in order of preference:
>
> - make these tests pass even when run as root? (I guess not?)
> - skip them and add ‘n tests not run as root’ to the final tally?
> - refuse to even start the test suite as root?
>
> What ‘root’ means here will depend on why these tests are failing.
>
> Kind regards,
>
> T G-R
Preventing the issue instead of warning of it in the manual sounds like
a better solution to me.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-30 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-30 12:47 bug#35047: "Running the Test Suite" root user mikadoZero
2019-03-30 13:50 ` Tobias Geerinckx-Rice
2019-03-30 15:30 ` mikadoZero
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).