Commit e4d4985
committed
build(tox): pin linuxfabrik-lib>=3.1.0 so the test helpers are always available
The `lib.lftest` module in linuxfabrik-lib 3.1.0 ships the
`run()`, `attach_tests()`, `attach_each()`, `run_mariadb()` and
`MARIADB_LTS_IMAGES` helpers that the unit test files rely on.
Up to now tox installed `linuxfabrik-lib` without a version
constraint, so in theory CI could pull an older release from
PyPI in which those helpers do not exist yet. The unit tests
would then only work through the `sys.path.insert(0, '..')`
shadow that points Python at the monitoring-plugins/lib symlink,
which requires the lib repo to be checked out next to the
monitoring-plugins repo - a dev-machine convention, not
something a fresh CI runner guarantees.
Pin `linuxfabrik-lib>=3.1.0` in the tox environment so the
matrix always installs a lib that has the helpers, and the
sys.path shadow can stay pragmatic (local-iteration friendly)
without being load-bearing on CI.1 parent 84b765c commit e4d4985
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| |||
0 commit comments