Skip to content
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
Closed

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

pytoxbot opened this issue Sep 17, 2016 · 3 comments

Comments

@pytoxbot
Copy link

@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
Copy link
Author

@pytoxbot 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
Copy link
Author

@pytoxbot 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
Copy link
Author

@pytoxbot 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
@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant