Skip to contentSkip to conversation

kselftests: fix up run_kselftest.sh due to spurious lines

PATCH New Fathi Boudra 1 participant 1 message Mar 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kselftests: fix up run_kselftest.sh due to spurious lines

run_kselftests.sh contains randomly spurious lines starting by "make[1]:". The way the script is generated is most likely broken.
Until, we've got a proper fix, get rid of the lines after the generated script is installed.

---
 recipes-kernel/kselftests/kselftests_4.9.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-kernel/kselftests/kselftests_4.9.bb +2 -0
index 39188b01..9d3f1d73 100644
@@ -72,6 +72,8 @@ do_compile () {
 do_install () {
 	oe_runmake install
 	chown -R root:root ${D}
+	# fixup run_kselftest.sh due to spurious lines starting by "make[1]:"
+	sed -i '/^make/d' ${D}${bindir}/kselftests/run_kselftest.sh
 }
 
 PACKAGE_BEFORE_PN = " \
Signature · 1 line
2.11.0