summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-06-07 10:51:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-07 23:21:43 +0100
commit5bcc84deb435175dd82be5f3020be5f24ba3e0de (patch)
tree108e994ae586c199fda054b8a7ff0e90462162b1
parent603337294405631f940f68150945c8fac06e501f (diff)
downloadpoky-5bcc84deb435175dd82be5f3020be5f24ba3e0de.tar.gz
insane: show cleaned build paths in more tests
A few tests were still manually cleaning their build paths, change them to use package_qa_clean_path(). (From OE-Core rev: f6550c3ee1bc076015d85db36b3d281e6a7ace9d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-global/insane.bbclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index bd05da0378..345196eeb3 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -459,8 +459,8 @@ def package_qa_check_buildpaths(path, name, d, elf, messages):
459 with open(path, 'rb') as f: 459 with open(path, 'rb') as f:
460 file_content = f.read() 460 file_content = f.read()
461 if tmpdir in file_content: 461 if tmpdir in file_content:
462 trimmed = path.replace(os.path.join (d.getVar("PKGDEST"), name), "") 462 path = package_qa_clean_path(path, d, name)
463 oe.qa.add_message(messages, "buildpaths", "File %s in package %s contains reference to TMPDIR" % (trimmed, name)) 463 oe.qa.add_message(messages, "buildpaths", "File %s in package %s contains reference to TMPDIR" % (path, name))
464 464
465 465
466QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi" 466QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi"
@@ -489,7 +489,7 @@ def package_qa_check_infodir(path, name, d, elf, messages):
489 infodir = d.expand("${infodir}/dir") 489 infodir = d.expand("${infodir}/dir")
490 490
491 if infodir in path: 491 if infodir in path:
492 oe.qa.add_message(messages, "infodir", "The /usr/share/info/dir file is not meant to be shipped in a particular package.") 492 oe.qa.add_message(messages, "infodir", "The %s file is not meant to be shipped in a particular package." % infodir)
493 493
494QAPATHTEST[symlink-to-sysroot] = "package_qa_check_symlink_to_sysroot" 494QAPATHTEST[symlink-to-sysroot] = "package_qa_check_symlink_to_sysroot"
495def package_qa_check_symlink_to_sysroot(path, name, d, elf, messages): 495def package_qa_check_symlink_to_sysroot(path, name, d, elf, messages):
@@ -501,8 +501,8 @@ def package_qa_check_symlink_to_sysroot(path, name, d, elf, messages):
501 if os.path.isabs(target): 501 if os.path.isabs(target):
502 tmpdir = d.getVar('TMPDIR') 502 tmpdir = d.getVar('TMPDIR')
503 if target.startswith(tmpdir): 503 if target.startswith(tmpdir):
504 trimmed = path.replace(os.path.join (d.getVar("PKGDEST"), name), "") 504 path = package_qa_clean_path(path, d, name)
505 oe.qa.add_message(messages, "symlink-to-sysroot", "Symlink %s in %s points to TMPDIR" % (trimmed, name)) 505 oe.qa.add_message(messages, "symlink-to-sysroot", "Symlink %s in %s points to TMPDIR" % (path, name))
506 506
507QAPATHTEST[32bit-time] = "check_32bit_symbols" 507QAPATHTEST[32bit-time] = "check_32bit_symbols"
508def check_32bit_symbols(path, packagename, d, elf, messages): 508def check_32bit_symbols(path, packagename, d, elf, messages):