summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaulo Neves <ptsneves@gmail.com>2022-06-14 17:11:04 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-01 12:37:52 +0100
commiteb997a68010c55d0aeacd6b5f0d026461ae716a2 (patch)
tree348126b70190862ed4729a100ff58319a50ca5c2 /meta/lib
parent00458ee0f8c0619707b53b7a72450fbd8cbc3e02 (diff)
downloadpoky-eb997a68010c55d0aeacd6b5f0d026461ae716a2.tar.gz
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>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/wrapper.py11
1 files changed, 11 insertions, 0 deletions
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 @@
1from oeqa.selftest.case import OESelftestTestCase
2from oeqa.utils.commands import bitbake
3
4class WrapperTests(OESelftestTestCase):
5 def test_shebang_wrapper(self):
6 """
7 Summary: Build a recipe which will fail if the cmdline_shebang_wrapper function is defective.
8 Expected: Exit status to be 0.
9 Author: Paulo Neves <ptsneves@gmail.com>
10 """
11 res = bitbake("cmdline-shebang-wrapper-test -c install", ignore_status=False)