1 |
commit: b24038b91beea9399c6b0df4d2cbc32c37077cb5 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 10 01:15:55 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 10 01:15:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24038b9 |
7 |
|
8 |
dev-lang/ispc: run tests using built ispc |
9 |
|
10 |
Provide a hint to the test runner by putting |
11 |
the newly-built ispc at the front of PATH. |
12 |
|
13 |
This avoids running tests with the system's |
14 |
ispc if it exists. |
15 |
|
16 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
dev-lang/ispc/ispc-1.14.0.ebuild | 3 ++- |
20 |
dev-lang/ispc/ispc-9999.ebuild | 3 ++- |
21 |
2 files changed, 4 insertions(+), 2 deletions(-) |
22 |
|
23 |
diff --git a/dev-lang/ispc/ispc-1.14.0.ebuild b/dev-lang/ispc/ispc-1.14.0.ebuild |
24 |
index d3dac5179e7..bba207d71c5 100644 |
25 |
--- a/dev-lang/ispc/ispc-1.14.0.ebuild |
26 |
+++ b/dev-lang/ispc/ispc-1.14.0.ebuild |
27 |
@@ -62,5 +62,6 @@ src_install() { |
28 |
} |
29 |
|
30 |
src_test() { |
31 |
- ${EPYTHON} run_tests.py || die "Testing failed." |
32 |
+ # Inject path to prevent using system ispc |
33 |
+ PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed with ${EPYTHON}" |
34 |
} |
35 |
|
36 |
diff --git a/dev-lang/ispc/ispc-9999.ebuild b/dev-lang/ispc/ispc-9999.ebuild |
37 |
index d3dac5179e7..bba207d71c5 100644 |
38 |
--- a/dev-lang/ispc/ispc-9999.ebuild |
39 |
+++ b/dev-lang/ispc/ispc-9999.ebuild |
40 |
@@ -62,5 +62,6 @@ src_install() { |
41 |
} |
42 |
|
43 |
src_test() { |
44 |
- ${EPYTHON} run_tests.py || die "Testing failed." |
45 |
+ # Inject path to prevent using system ispc |
46 |
+ PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed with ${EPYTHON}" |
47 |
} |