diff options
author | Paulo Neves <ptsneves@gmail.com> | 2022-06-14 17:11:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-01 11:53:36 +0100 |
commit | 6edc1fffcbe1405d8c309a75643d7d6cd9a92848 (patch) | |
tree | f1fe31312e4331ac8ca09c46091cdc3e2c8fb971 /meta/lib/oeqa/selftest/cases/wrapper.py | |
parent | 2a96719a201cb7b8db774718adec89dbd7e1aec3 (diff) | |
download | openembedded-core-6edc1fffcbe1405d8c309a75643d7d6cd9a92848.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.
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/oeqa/selftest/cases/wrapper.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wrapper.py | 11 |
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 @@ +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) |