I wanted to write a command to ssh into vagrant, change the current working directory, and then run nosetests.
I found in the documentation for vagrant that this could be done with vagrant ssh -c COMMAND http://docs.vagrantup.com/v2/cli/ssh.html <http://docs.vagrantup.com/v2/cli/ssh.html> The problem is I'm getting different results if I run nose through -c or manually after SSH. Command: vagrant ssh -c 'pwd && cd core && pwd && nosetests -x --failed' web Output: /web/web/core ----------------------------------------------------------------------Ran 0 tests in 4.784s OKConnection to 127.0.0.1 closed. Commands: vagrant ssh web /web$ pwd && cd core && pwd && nosetests -x --failed Output: /web /web/core ....................................................................................................................................................................................................................................<snip>............................... --------------------------------------------------------- Ran 1399 tests in 180.325s I don't understand why it makes a difference. -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
