|
From: | Hartmut Goebel |
Subject: | Re: [PATCH 03/10] gnu: Add python-pytest-pep8. |
Date: | Thu, 21 Apr 2016 20:26:16 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Am 21.04.2016 um 15:21 schrieb Ben
Woodcroft:
+ (add-after 'install 'post-install-check + ;; 'setup.py test' does not run tests + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "PYTHONPATH" + (string-append + (getenv "PYTHONPATH") + ":" + out + "/lib/python" + (string-take (string-take-right + (assoc-ref inputs "python") 5) 3) + "/site-packages")) + (zero? + (system* + (string-append out "/bin/py.test") "test_pep8.py")))))))) Have you tried if the tests are run when moving the test-file into a new subdirectory "tests/"? This would result in much less code. --
Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer Information Security Management, Security Governance, Secure Software Development
Goebel Consult, Landshut
Blog:
http://www.goebel-consult.de/blog/feiertagsarbeit-bei-teletrust
|
smime.p7s
Description: S/MIME Cryptographic Signature
[Prev in Thread] | Current Thread | [Next in Thread] |