runtest.sh fails to set up horizon correctly
Bug #1319028 reported by
Peter Belanyi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tuskar-ui |
Fix Committed
|
Medium
|
Ana Krivokapić |
Bug Description
Running runtest.sh results in manage.py failing with message "ImportError: Could not import settings 'tuskar_
It seems that the Horizon development environment is not set up properly.
Running the tests with tox works fine, in that case tox prepares the environment and then runtest.sh is called just to run the testcases, so the issue is with the environment preparing part of runtest.sh.
To post a comment you must log in.
Changing the coverage command to
python -m coverage.__main__
seems to solve this problem. Solution found in this Horizon commit: https:/ /review. openstack. org/#/c/ 67517.