In case someone else runs into this, I was able to resolve the issue. I changed my command to vagrant ssh -c 'cd core && nosetests -x --failed --exe' web.
It still isn't clear to me why it makes a difference between -c and manually going into the box, but it works now. On Friday, June 12, 2015 at 1:11:31 PM UTC-7, Kevin Engle wrote: > > 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. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/a326f622-4a65-4dc2-a041-4b9567358917%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
