automated: lib: modify check_return to support xfail

xfail tanslates to "expected failure". This implementation assumes that
exit code different than 0 means failure. The patch modifies
check_return to accept additional parameter "xfail". If the parameter is
set, exit code 0 will be considered "fail" and exit code different
than 0 will be considered "pass".

Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
1 file changed
tree: 42cbb64c89d723ca05924ea4af0575a91932bc08
  1. .github/
  2. .reuse/
  3. automated/
  4. docs/
  5. LICENSES/
  6. manual/
  7. mkdocs_plugin/
  8. plans/
  9. test/
  10. .gitignore
  11. .readthedocs.yml
  12. COPYING
  13. COPYRIGHTS
  14. mkdocs.yml
  15. README.md
  16. sanity-check.sh
  17. test.sh
  18. validate.py
README.md

Build Status REUSE Compliance Check

Test Definitions

A set of testing scripts designed to work with LAVA. Also contains test-runner script that allows execution outside LAVA.

More details in docs