runtest.sh fails to set up horizon correctly

Bug #1319028 reported by Peter Belanyi
6
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_ui.test.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named horizon.test.settings".

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.

Revision history for this message
Ana Krivokapić (akrivoka) wrote :

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.

Changed in tuskar-ui:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Ana Krivokapić (akrivoka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tuskar-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/93474

Changed in tuskar-ui:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tuskar-ui (master)

Reviewed: https://review.openstack.org/93474
Committed: https://git.openstack.org/cgit/openstack/tuskar-ui/commit/?id=58007170b8fb649accf048aed995dcec360e13eb
Submitter: Jenkins
Branch: master

commit 58007170b8fb649accf048aed995dcec360e13eb
Author: Ana Krivokapic <email address hidden>
Date: Tue May 13 18:15:25 2014 +0200

    Use python -m coverage.__main__ to invoke coverage

    Change-Id: I286922565ee947fea72a1d9ac4cc3a4845ab4deb
    Closes-bug: #1319028

Changed in tuskar-ui:
status: In Progress → Fix Committed
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.