Skip to content
Success

Changes

Summary

  1. testenv: osmo-dev: add hint for gen_makefile fail (details)
  2. hnbgw: Support testenv (details)
  3. testenv: remove dead code for [testsuite] prepare= (details)
  4. testenv: add proper [testsuite] prepare= support (details)
Commit 14d4a2805d6790aa410f6c5c1d7328c71bdaef84 by Oliver Smith
testenv: osmo-dev: add hint for gen_makefile fail

When gen_makefile.py from osmo-dev fails, it is likely that the osmo-dev
git clone is outdated, for example if a new file with configure options
was added to osmo-dev.git and is now being used by testenv. Display a
hint for pulling this repository to the user.

Change-Id: Ia9ed23fa910876252093054f5f389865632c7593
The file was modified_testenv/testenv/podman.py
The file was modified_testenv/testenv/osmo_dev.py
Commit c1c05554fddeb3502492b49f361a2dd4a67f3e04 by Oliver Smith
hnbgw: Support testenv

Change-Id: Id2bcc4e13881db01b8e4d9f1738355b8d779fa63
The file was modifiedhnbgw/osmo-hnbgw.cfg
The file was modifiedhnbgw/osmo-hnbgw-with-pfcp.cfg
The file was addedhnbgw/HNBGW_Tests-with-pfcp.cfg
The file was modified_testenv/testenv/osmo_dev.py
The file was addedhnbgw/testenv_generic.cfg
The file was addedhnbgw/testenv_with-pfcp.cfg
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.py
The file was modified_testenv/testenv/testsuite.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/testenv/testdir.py
The file was modified_testenv/testenv/testenv_cfg.py
The file was modified_testenv/README.md