From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTskB-00052R-3L for guix-patches@gnu.org; Sat, 08 Jul 2017 12:38:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTsk6-0002zw-GU for guix-patches@gnu.org; Sat, 08 Jul 2017 12:38:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTsk6-0002zm-6A for guix-patches@gnu.org; Sat, 08 Jul 2017 12:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dTsk5-0000ra-S2 for guix-patches@gnu.org; Sat, 08 Jul 2017 12:38:01 -0400 Subject: [bug#27599] [PATCH 1/2] gnu: Add cmdtest. Resent-Message-ID: Message-Id: <051619cb.AEMAMuYKo5QAAAAAAAAAAAPR3_IAAAACwQwAAAAAAAW9WABZYQpN@mailjet.com> MIME-Version: 1.0 From: Arun Isaac Date: Sat, 08 Jul 2017 22:07:20 +0530 In-reply-to: <8760f46x2a.fsf@openmailbox.org> References: <87h8yp76kj.fsf@openmailbox.org> <20170706184206.11315-1-kei@openmailbox.org> <8b934d75.AEMAMoforQgAAAAAAAAAAAPR3_EAAAACwQwAAAAAAAW9WABZXqQn@mailjet.com> <87d19d6ouj.fsf@openmailbox.org> <8760f46x2a.fsf@openmailbox.org> Content-Type: text/plain 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: Kei Kebreau Cc: 27599@debbugs.gnu.org > I can't figure out what's going wrong with the test suite. Perhaps > someone familiar with the Coverage Test Runner module in python can be > of assistance. I made some progress. Here are the arguments I used. (arguments `(#:python ,python-2 #:phases (modify-phases %standard-phases ;; check phase needs to be run before the build phase. If not, the ;; coverage test runner looks for tests for the built source files, ;; and fails. (delete 'check) (add-before 'build 'check (lambda _ (substitute* "yarn" (("/bin/sh") (which "sh"))) (zero? (system* "python" "setup.py" "check"))))))) However, there is still one (hopefully) last test that is failing. This happens when `python setup.py check' runs `./cmdtest yarn.tests'. I'm not able to figure out exactly what the issue is. But, I noticed that this test fails only in the build environment, and runs fine in my user environment. So, this must be due to something that is missing in the build environment -- possibly some environment variable. Check it out and let me know. I will also continue trying. =