The tests expect to be ran inside the testsuite directory, which means
some tests fail because files cannot be found.

This fixes the tests:

    ptestresult.binutils-gas.DWARF5 .loc 0
    ptestresult.binutils-gas.DWARF5 dir[0]

Signed-off-by: Ross Burton <[email protected]>
---
 meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb 
b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
index e5e159bc718..fe6b8c6f404 100644
--- a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
+++ b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
@@ -61,7 +61,7 @@ python check_prepare() {
         return "\n".join(content)
 
     for i in ["binutils", "gas", "ld"]:
-        builddir = os.path.join(d.getVar("B"), i)
+        builddir = os.path.join(d.getVar("B"), i, "testsuite")
         if not os.path.isdir(builddir):
             os.makedirs(builddir)
         with open(os.path.join(builddir, "site.exp"), "w") as f:
@@ -70,13 +70,13 @@ python check_prepare() {
 
 CHECK_TARGETS ??= "binutils gas ld"
 
-do_check[dirs] = "${B} ${B}/binutils ${B}/gas ${B}/ld"
+do_check[dirs] = "${B} ${B}/binutils/testsuite ${B}/gas/testsuite 
${B}/ld/testsuite"
 do_check[prefuncs] += "check_prepare"
 do_check[nostamp] = "1"
 do_check() {
     export LC_ALL=C
     for i in ${CHECK_TARGETS}; do
-        (cd ${B}/$i; runtest \
+        (cd ${B}/$i/testsuite; runtest \
             --tool $i \
             --srcdir ${S}/$i/testsuite \
             --ignore 'plugin.exp' \
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#227300): 
https://lists.openembedded.org/g/openembedded-core/message/227300
Mute This Topic: https://lists.openembedded.org/mt/116614550/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to