diff options
Diffstat (limited to 'meta-selftest')
| -rw-r--r-- | meta-selftest/recipes-test/logging-test/logging-test.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/logging-test/logging-test.bb b/meta-selftest/recipes-test/logging-test/logging-test.bb index a6100123f9..ac3fb46f45 100644 --- a/meta-selftest/recipes-test/logging-test/logging-test.bb +++ b/meta-selftest/recipes-test/logging-test/logging-test.bb | |||
| @@ -11,12 +11,22 @@ do_shelltest() { | |||
| 11 | } | 11 | } |
| 12 | addtask do_shelltest | 12 | addtask do_shelltest |
| 13 | 13 | ||
| 14 | python do_pythontest_exec_func_shell() { | ||
| 15 | bb.build.exec_func('do_shelltest', d) | ||
| 16 | } | ||
| 17 | addtask do_pythontest_exec_func_shell | ||
| 18 | |||
| 14 | python do_pythontest_exit () { | 19 | python do_pythontest_exit () { |
| 15 | print("This is python stdout") | 20 | print("This is python stdout") |
| 16 | sys.exit(1) | 21 | sys.exit(1) |
| 17 | } | 22 | } |
| 18 | addtask do_pythontest_exit | 23 | addtask do_pythontest_exit |
| 19 | 24 | ||
| 25 | python do_pythontest_exec_func_python() { | ||
| 26 | bb.build.exec_func('do_pythontest_exit', d) | ||
| 27 | } | ||
| 28 | addtask do_pythontest_exec_func_python | ||
| 29 | |||
| 20 | python do_pythontest_fatal () { | 30 | python do_pythontest_fatal () { |
| 21 | print("This is python fatal test stdout") | 31 | print("This is python fatal test stdout") |
| 22 | bb.fatal("This is a fatal error") | 32 | bb.fatal("This is a fatal error") |
