From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#25177: Test failures don't cause some Python packages to fail [was Re: [PATCH 05/11] gnu: Add python-pygit2.] Date: Mon, 12 Dec 2016 00:05:57 +0100 Message-ID: <87y3zmkqwa.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20161211181237.24485-1-ng0@libertad.pw> <20161211181237.24485-6-ng0@libertad.pw> <20161211223454.GA9474@jasmine> <871sxem5ix.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGDC2-0001Mc-0I for bug-guix@gnu.org; Sun, 11 Dec 2016 18:06:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGDBy-0004mD-OD for bug-guix@gnu.org; Sun, 11 Dec 2016 18:06:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGDBy-0004ly-Kr for bug-guix@gnu.org; Sun, 11 Dec 2016 18:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cGDBy-0003eD-CV for bug-guix@gnu.org; Sun, 11 Dec 2016 18:06:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871sxem5ix.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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: Leo Famulari , 25177@debbugs.gnu.org --=-=-= Content-Type: text/plain Marius Bakke writes: > Perhaps something like this would work (untested)? Oops, here is the patch I wanted to attach: --8<---------------cut here---------------start------------->8--- (define* (check #:key tests? test-target use-setuptools? #:allow-other-keys) "Run the test suite of a given Python package." (if tests? (let ((before (find-files "build" "\\.egg-info$" #:directories? #t))) (if (call-setuppy test-target '() use-setuptools?) (let* ((after (find-files "build" "\\.egg-info$" #:directories? #t)) (inter (lset-difference eqv? after before))) (for-each delete-file-recursively inter) #t)) #f) #t)) --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlhN29YACgkQoqBt8qM6 VPqZ+wgAyqK0XT2bkcgNQTS7E5uBr8FfiRoUXQfp8g6+dMjFo8LyMG781cb74g2O xohHNUsHRiUll9Dn+DbcSkeYmUnLUGaFRffREIsH8b/W+YXlQe17A3bLLeV+ktKB OAiZPfd3zkurkd8w8dBMhljpqyHRPDVIgbRRO7zOTtV8B5GHWmwyUtX1gPDO2pBj QJipTCVwAdkqAga3d7FPSfDkRIamDgtDZqAKdM0JEZDg35qFb7le9vSZTQ0JVkcl JmvBTABXVIxTvwdkxPAMmi8mGqQowDxF6JPouwfw82yK6KQpQJElNQTPDSR+JgNm bhNAQfESVKhkKcK7rlT7ngTTwBXU7A== =Ul1Z -----END PGP SIGNATURE----- --=-=-=--