logging-test.bb 740 B

12345678910111213141516171819202122232425262728293031323334
  1. SUMMARY = "Destined to fail"
  2. LICENSE = "CLOSED"
  3. deltask do_patch
  4. INHIBIT_DEFAULT_DEPS = "1"
  5. do_shelltest() {
  6. echo "This is shell stdout"
  7. echo "This is shell stderr" >&2
  8. exit 1
  9. }
  10. addtask do_shelltest
  11. python do_pythontest_exec_func_shell() {
  12. bb.build.exec_func('do_shelltest', d)
  13. }
  14. addtask do_pythontest_exec_func_shell
  15. python do_pythontest_exit () {
  16. print("This is python stdout")
  17. sys.exit(1)
  18. }
  19. addtask do_pythontest_exit
  20. python do_pythontest_exec_func_python() {
  21. bb.build.exec_func('do_pythontest_exit', d)
  22. }
  23. addtask do_pythontest_exec_func_python
  24. python do_pythontest_fatal () {
  25. print("This is python fatal test stdout")
  26. bb.fatal("This is a fatal error")
  27. }
  28. addtask do_pythontest_fatal