New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly relative paths in `commands=` are ignored #26

Closed
pytoxbot opened this Issue Sep 17, 2016 · 3 comments

Comments

Projects
None yet
1 participant
@pytoxbot

pytoxbot commented Sep 17, 2016

I have a bash script inside my project which I would like to run before tests… However, the obvious way of running it:

commands=
    ./reset
    nosetests

Causes tox to complain:

[TOX] WARNING:test command found but not installed in testenv
  cmd: /usr/bin/reset
  env: …/.tox/py27
Maybe forgot to specify a dependency?

I'm working around this for now using:

commands=
    bash ./reset
    nosetests

But it would be nice if that wasn't necessary.

@pytoxbot

This comment has been minimized.

pytoxbot commented Sep 17, 2016

Original comment by @wolever

Cool. I've just updated my CI server and that seems to be working nicely. Thanks!

@pytoxbot

This comment has been minimized.

pytoxbot commented Sep 17, 2016

Original comment by @hpk42

I fixed it so your relative path should work - you can verify with "pip install -i http://pypi.testrun.org -U tox"

@pytoxbot

This comment has been minimized.

pytoxbot commented Sep 17, 2016

Original comment by @hpk42

I don't know why the "bash" solution works, actually. Bug i think i agree that the "./reset" path should work.

@pytoxbot pytoxbot closed this Sep 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment