stestr not found when running functional tests

Bug #1766677 reported by Brian Rosmaita
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Triaged
Low
Unassigned

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:

[quote]
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.
[/quote]

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.

Tags: testing
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.