automated: linux: kunit: fix return code check

The check "$?" checks against a string, which isn't correct it should
check against a return code.
Rewrote the if-statement to do lsmod | grep.

Reported-by: Yongqin Liu <yongqin.liu@linaro.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 file changed
tree: b917f9a549c581609a2c2f1690eaa20b5ac1c850
  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