commit:     b24038b91beea9399c6b0df4d2cbc32c37077cb5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 10 01:15:55 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 10 01:15:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24038b9

dev-lang/ispc: run tests using built ispc

Provide a hint to the test runner by putting
the newly-built ispc at the front of PATH.

This avoids running tests with the system's
ispc if it exists.

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/ispc/ispc-1.14.0.ebuild | 3 ++-
 dev-lang/ispc/ispc-9999.ebuild   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-lang/ispc/ispc-1.14.0.ebuild b/dev-lang/ispc/ispc-1.14.0.ebuild
index d3dac5179e7..bba207d71c5 100644
--- a/dev-lang/ispc/ispc-1.14.0.ebuild
+++ b/dev-lang/ispc/ispc-1.14.0.ebuild
@@ -62,5 +62,6 @@ src_install() {
 }
 
 src_test() {
-       ${EPYTHON} run_tests.py || die "Testing failed."
+       # Inject path to prevent using system ispc
+       PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing 
failed with ${EPYTHON}"
 }

diff --git a/dev-lang/ispc/ispc-9999.ebuild b/dev-lang/ispc/ispc-9999.ebuild
index d3dac5179e7..bba207d71c5 100644
--- a/dev-lang/ispc/ispc-9999.ebuild
+++ b/dev-lang/ispc/ispc-9999.ebuild
@@ -62,5 +62,6 @@ src_install() {
 }
 
 src_test() {
-       ${EPYTHON} run_tests.py || die "Testing failed."
+       # Inject path to prevent using system ispc
+       PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing 
failed with ${EPYTHON}"
 }

Reply via email to