From eb997a68010c55d0aeacd6b5f0d026461ae716a2 Mon Sep 17 00:00:00 2001 From: Paulo Neves Date: Tue, 14 Jun 2022 17:11:04 +0200 Subject: 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 Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/wrapper.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta/lib/oeqa/selftest/cases/wrapper.py (limited to 'meta/lib/oeqa/selftest/cases/wrapper.py') diff --git a/meta/lib/oeqa/selftest/cases/wrapper.py b/meta/lib/oeqa/selftest/cases/wrapper.py new file mode 100644 index 0000000000..6de63310c0 --- /dev/null +++ b/meta/lib/oeqa/selftest/cases/wrapper.py @@ -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 + """ + res = bitbake("cmdline-shebang-wrapper-test -c install", ignore_status=False) -- cgit v1.2.3-54-g00ecf