The first problem is because `make test` runs tox, but tox isn't installed.
You can
add it to your packages list in tests.yaml. I would also recommend changing
the
shebang line of your 10-deploy test to #!/usr/bin/env python3

On Tue, Dec 6, 2016 at 4:25 PM, Merlijn Sebrechts <
[email protected]> 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
> [email protected]
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
>
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to