vagrant/test/unit
Jeff Bonhag e672e5dc65
Fix issues with Windows SSH provisioner
Windows commands that run over SSH are wrapped in a script that writes a
special marker to the two output streams (stdout and stderr).  This
allows Vagrant to consume the output streams.

Unfortunately, this leads to a sort of chicken-and-egg problem where no
commands can be run before a wrapper script exists. For example, you
can't make a destination directory to upload the wrapper script without
first creating a wrapper script to make the directory. :)

This commit changes the behavior of the WinSSH communicator to assume
that the destination directory already exists for provisioning scripts.

It also moves the default `upload_path` from the shell provisioner
config so we can have OS-specific defaults.

Finally, it introduces a Windows-specific #upload method which will
properly use a Windows path separator on a non-Windows host.
2020-01-13 13:55:48 -05:00
..
bin Add coverage on vagrantfile_name stubbing behavior 2018-07-18 10:50:41 -07:00
plugins Fix issues with Windows SSH provisioner 2020-01-13 13:55:48 -05:00
support Remove virtualbox context from docker tests 2019-09-11 07:46:40 -07:00
templates Darwin: put each NFS export on its own line (#11216) 2019-11-25 15:41:05 -05:00
vagrant Fix issues with Windows SSH provisioner 2020-01-13 13:55:48 -05:00
base.rb Only run tests that require bsdtar if it is available 2019-06-19 15:29:55 -07:00
vagrant_test.rb add `Vagrant.version?` helper method 2018-09-07 11:37:30 +02:00