From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: bug#35047: "Running the Test Suite" root user Date: Sat, 30 Mar 2019 14:50:35 +0100 Message-ID: <874l7ka2ve.fsf@nckx> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAEOE-0000uT-DJ for bug-guix@gnu.org; Sat, 30 Mar 2019 09:51:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAEOB-0005zc-6h for bug-guix@gnu.org; Sat, 30 Mar 2019 09:51:18 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51044) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAENx-0005qM-Sy for bug-guix@gnu.org; Sat, 30 Mar 2019 09:51:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hAENx-0001lK-P8 for bug-guix@gnu.org; Sat, 30 Mar 2019 09:51:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: mikadoZero Cc: 35047@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable mikadoZero, mikadoZero wrote: > Looking at "2.3 Running the Test Suite" of the manual it does=20 > not > mention that tests should be run as a non root user. I guess this is one of those (Unix-)cultural knowledge things: it=20 wouldn't even occur to me to build or test anything as root unless=20 explicitly asked to do so :-) > The test `tests/pack` fails when `make check` is run as a root=20 > user. It > does not fail when run as a non root user. I found this example=20 > by > running `make check TESTS=3D"tests/pack.scm"`. Is this an issue=20 > for many > tests? > > I can prepare a patch for the relevant part (parts if this also=20 > applies > to `make check-system` as well) in "2.3 Running the Test Suite"=20 > of the > manual. Thanks for the offer! I think adding yet another gotcha to the=20 manual should be a last resort, though. Many people still miss=20 them and get into trouble (and on to IRC). Could we, in order of preference: =2D make these tests pass even when run as root? (I guess not?) =2D skip them and add =E2=80=98n tests not run as root=E2=80=99 to the fina= l tally? =2D refuse to even start the test suite as root? What =E2=80=98root=E2=80=99 means here will depend on why these tests are f= ailing. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXJ90KwAKCRANsP+IT1Vt eSOSAQCiLU+fJfaMQguGFjKiI0unkMAE4Ep2DERF7SUl4r9iuwD8CU+8Ezk8MDFu EcdXKz3MlZ3x45WKrdUu7KKNFD9hyQs= =idEb -----END PGP SIGNATURE----- --=-=-=--