Code review comment for lp:~hopem/charms/trusty/jenkins/python-redux

Revision history for this message
Matt Bruzek (mbruzek) wrote :

I tried running these tests with bundletester by hand and got the following errors:

ERROR: jenkins::100-deploy-precise
[/tmp/bundletester-I8dVhl/jenkins/tests/100-deploy-precise exit 1]
Traceback (most recent call last):

  File "/tmp/bundletester-I8dVhl/jenkins/tests/100-deploy-precise", line 3, in <module>

    import amulet

ImportError: No module named amulet

------------------------------------------------------------------------------
ERROR: jenkins::100-deploy-trusty
[/tmp/bundletester-I8dVhl/jenkins/tests/100-deploy-trusty exit 1]
Traceback (most recent call last):

  File "/tmp/bundletester-I8dVhl/jenkins/tests/100-deploy-trusty", line 3, in <module>

    import amulet

ImportError: No module named amulet

It seems that your tests use a different python that was installed with amulet in the 00-setup method. Changing the shebang statements to #!/usr/bin/python3 solved this problem.

To reproduce this problem you can install bundletester from pip and try running the tests yourself.

pip install bundletester
bundetester -F -e hp-cloud -l DEBUG -v

« Back to merge proposal