automated: linux: modules: clear kmemleak state before testing each module

Add kmemleak state clearing before testing each module to ensure clean
starting conditions and prevent false attribution of leaks between modules.

This ensures that:
- Each module starts with a clean kmemleak state
- Leaks detected are attributed to the correct module being tested
- No cross-contamination between different module tests occurs
- Previous module leaks don't affect subsequent module test results

The clearing is only performed when kmemleak is available, maintaining
compatibility with systems that don't have kmemleak support.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 file changed
tree: bf22fd452fb2f2d444a33fe9fa295b994ce685df
  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