Files
poky/meta/lib/oeqa/selftest/cases/wrapper.py
Paulo Neves eb997a6801 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>
2022-07-01 12:37:52 +01:00

12 lines
473 B
Python

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)