slapos-testing, slapos-sr-testing: Don't duplicate instance.cfg prologue that...
slapos-testing, slapos-sr-testing: Don't duplicate instance.cfg prologue that is already provided by stack/nxdtest/instance.cfg This software releases switched to nxdtest in 1536ad2e (software/slapos-testing: use nxdtest) and 3a1e5628 (software/slapos-sr-testing: use nxdtest). So there is no longer need to duplicate that standard instance prologue that is provided by stack/nxdtest/instance.cfg: https://lab.nexedi.com/nexedi/slapos/blob/0803b816/stack/nxdtest/instance.cfg.in#L1-8 /reviewed-by @jerome /reviewed-on !94
-
Owner
This commit may have broken
slapos.cookbook
test line inSlapOS.Eggs.UnitTest-Master.Python2
. Can you check ? -
Owner
Thanks ! this must be related to https://lab.nexedi.com/nexedi/slapos/blob/a95514021a47aa10d793174d06e85123f0905357/slapos/test/utils.py this code parses buildout.cfg so that tests for recipe installing eggs reuse the eggs already installed by buildout, instead of installing eggs again.
This code parsed the buildout.cfg using
zc.buildout.configparser.parse
to getbuildout:eggs-directory
, but this parse function does not understand extends, so now that the option is defined in an extended profile it's not found.I'm thinking we can rewrite this to make software/slapos-testing set an environment variable containing egg directories to pass this value to the test instead of having the test trying to guess like this.
-
Owner
I tried this approach of using environment variables in !949 (merged)
-
Owner
@jerome, thanks a lot. I've tried !949 (merged) on my webrunner and I confirm that
slapos.cookbook
tests now pass with it. -
mentioned in merge request !949 (merged)