stestr not found when running functional tests

Bug #1766677 reported by Brian Rosmaita on 2018-04-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

This is currently only a warning, but might as well fix it before it becomes an error.

When running tox for either functional-swift or functional-filesystem testenvs, you will see this message:

functional-swift runtests: commands[0] | ostestr --slowest --testr-args=glance_store.tests.functional.swift
WARNING:test command found but not installed in testenv
  cmd: /usr/local/bin/ostestr
  env: /home/rosmabr/working/new/glance_store/.tox/functional-swift
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.

os-testr is listed in test-requirements.txt, which is being loaded as a dep in tox.ini in the default testenv. Not sure why it's not being found in the functional-* testenvs.

Brian Rosmaita (brian-rosmaita) wrote :

I think I figured out what's going on. The functional testenv definitions in tox.ini have sitepackages=True. It looks like tox only installs the requirements that aren't already present on the system in that case, so whether you see this message or not depends on whether you have stestr installed somewhere in your path. I guess we could whitelist stestr for this case? Probably not worth worrying about.

summary: - ostestr not found when running functional tests
+ stestr not found when running functional tests
Changed in glance-store:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers