Skip to content
Success

Changes

Summary

  1. testenv: remove dead code for [testsuite] prepare= (details)
  2. testenv: add proper [testsuite] prepare= support (details)
Commit c009d49e97b9302ccb411567fb23a9f3e760e40c by Oliver Smith
testenv: remove dead code for [testsuite] prepare=

Remove some WIP code that I intended to use for enabling the mongodb
repository before installing binary packages, to be able to dynamically
install mongodb from there. I solved it differently by just always
having mongodb in the podman image.

This was a dead code path because configs with prepare= in [testsuite]
are currently not valid, and therefore testenv refuses to use these
configs (see keys_valid_testsuite in testenv_cfg.py's verify()).

I have a different use case for running prepare= before running the
testsuite, to replace a module parameter in the testsuite's config. This
will be done in the next patch.

Change-Id: I9bed48612fad690f86017c298372dc6cea22b94b
The file was modified_testenv/testenv/testsuite.py
The file was modified_testenv/testenv.py
Commit c568521460426c78a7cc7f68de38af6dfe2c4921 by Oliver Smith
testenv: add proper [testsuite] prepare= support

Support using prepare= in the [testsuite] section to e.g. change module
parameters:

  [testsuite]
  prepare=sed -i 's/mp_my_parameter := false/mp_my_parameter := true/' Testsuite.cfg

Move the execution time of prepare and clean scripts in
testdir.prepare() after the testsuite config has been copied to the
testdir, so it can be modified by the prepare script.

Change-Id: Ia78a4eba061e5e070f156f75eae1dfa4cede1ee3
The file was modified_testenv/README.md
The file was modified_testenv/testenv/testdir.py
The file was modified_testenv/testenv/testenv_cfg.py