Issues with amulet tests

Tim Van Steenburgh tim.van.steenburgh at canonical.com
Tue Dec 6 22:21:20 UTC 2016


The second error won't really matter once you get things working with
bundletester,
but that error generally happens when you run an amulet test (for a local
charm)
directly and your cwd is not the charm dir, or some dir beneath it. Try
running it from
the charmdir instead.

On Tue, Dec 6, 2016 at 4:25 PM, Merlijn Sebrechts <
merlijn.sebrechts at gmail.com> wrote:

> Hi
>
>
> I'm trying to get my charm ready for the review queue and I'm having some
> issues getting the tests to work right.
>
> Running bundletester on the charm gives the following error:
>
> openvpn
>     charm-proof
>  PASS
>     make test
>  FAIL
>
> ------------------------------------------------------------
> ------------------
> FAIL: openvpn::make test
> [/usr/bin/make -s test          exit 2]
> make: tox: Command not found
> Makefile:3: recipe for target 'test' failed
> make: *** [test] Error 127
>
>
>
> Running the test script manually also throws errors.
>
> ======================================================================
> ERROR: test_service (__main__.TestCharm)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./10-deploy", line 14, in setUp
>     self.d.add('openvpn')
>   File "/usr/local/lib/python3.5/dist-packages/amulet/deployer.py", line
> 192, in add
>     service_name, charm, branch=branch, series=service['series'])
>   File "/usr/local/lib/python3.5/dist-packages/amulet/charm.py", line 57,
> in fetch
>     series=series)
>   File "/usr/local/lib/python3.5/dist-packages/amulet/charm.py", line 40,
> in get_charm
>     return LocalCharm(charm_path, series)
>   File "/usr/local/lib/python3.5/dist-packages/amulet/charm.py", line 72,
> in __init__
>     raise Exception('Charm not found')
> Exception: Charm not found
>
> ----------------------------------------------------------------------
> Ran 1 test in 0.025s
>
> FAILED (errors=1)
>
>
> I'm trying to run these tests from local charms. You can find the charm
> here: https://github.com/IBCNServices/tengu-charms/
> tree/openvpn/charms/builds/openvpn
>
>
>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20161206/a9238664/attachment.html>


More information about the Juju mailing list