From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX1aU-00088I-Os for guix-patches@gnu.org; Mon, 17 Jul 2017 04:41:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX1aQ-0003vf-Sh for guix-patches@gnu.org; Mon, 17 Jul 2017 04:41:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40510) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX1aQ-0003vW-ON for guix-patches@gnu.org; Mon, 17 Jul 2017 04:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dX1aQ-00045V-Aa for guix-patches@gnu.org; Mon, 17 Jul 2017 04:41:02 -0400 Subject: [bug#27650] [PATCH] gnu: services: admin: Add tailon. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170711065634.9717-1-mail@cbaines.net> <87shi1etui.fsf@gnu.org> <20170716165149.48c2fe19@cbaines.net> Date: Mon, 17 Jul 2017 10:40:11 +0200 In-Reply-To: <20170716165149.48c2fe19@cbaines.net> (Christopher Baines's message of "Sun, 16 Jul 2017 16:51:49 +0100") Message-ID: <87mv83e9sk.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 27650@debbugs.gnu.org Christopher Baines skribis: > On Wed, 12 Jul 2017 14:13:25 +0200 [...] >> Bonus points if you write a system test that checks that at least the >> Web server shows up on port 8080. > > I've had a go at this, I'll send a separate patch. It doesn't pass for > me yet, and I'm not sure how to work out what is going on inside the > test system, does anyone have any tips for writing and debugging system > tests in general? No specific tips. Beware of QEMU port forwarding: it doesn=E2=80=99t allow= you to really diagnose what=E2=80=99s going on if you can=E2=80=99t connect fro= m the host to the guest (it=E2=80=99s hard to tell if that=E2=80=99s because the service = in the guest is not running.) So on a few occasions I found that I=E2=80=99d first try connecting from within the guest as my first attempt (using =E2=80=98marionette-eval=E2=80=99), to see if this would work at all. Sometimes you=E2=80=99ll also want to just run a VM of the system under test interactively so experiment a bit. HTH, Ludo=E2=80=99.