mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
utils: Add cmdline_shebang_wrapper util.
Useful to work around shebang relocation issues, where shebangs are too long or have arguments in them, thus preventing them from using the /usr/bin/env shebang. (From OE-Core rev: 6edc1fffcbe1405d8c309a75643d7d6cd9a92848) Signed-off-by: Paulo Neves <ptsneves@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
00458ee0f8
commit
eb997a6801
@@ -0,0 +1,11 @@
|
||||
from oeqa.selftest.case import OESelftestTestCase
|
||||
from oeqa.utils.commands import bitbake
|
||||
|
||||
class WrapperTests(OESelftestTestCase):
|
||||
def test_shebang_wrapper(self):
|
||||
"""
|
||||
Summary: Build a recipe which will fail if the cmdline_shebang_wrapper function is defective.
|
||||
Expected: Exit status to be 0.
|
||||
Author: Paulo Neves <ptsneves@gmail.com>
|
||||
"""
|
||||
res = bitbake("cmdline-shebang-wrapper-test -c install", ignore_status=False)
|
||||
Reference in New Issue
Block a user