Skip to content

Commit

Permalink
Use /var/run/ -> /run symlink for tests
Browse files Browse the repository at this point in the history
The symlink /var/run -> /run is more common among different Linux distributions
than /sbin/ -> /usr/sbin. This makes the testsuite a bit more portable when
swapping the vagrant box for one of a different distro.
  • Loading branch information
dcermak committed Apr 1, 2020
1 parent 71003d3 commit 99a62bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/misc/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Vagrant.configure(2) do |config|

# Test a forward mount to a location that is a symbolic link
# https://github.com/dustymabe/vagrant-sshfs/issues/44
config.vm.synced_folder "/etc/", "/sbin/forward_slave_mount_sym_link_test/", type: "sshfs"
config.vm.synced_folder "/etc/", "/var/run/forward_slave_mount_sym_link_test/", type: "sshfs"

# Test a forward normal mount:
# mounting a folder from a 3rd party host into guest
Expand Down
2 changes: 1 addition & 1 deletion test/misc/dotests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ vagrant ssh -- cat /tmp/forward_slave_mount_etc/machine-id

# https://github.com/dustymabe/vagrant-sshfs/issues/44
echo -en "Testing slave forward mount with a symlink!\n\t"
vagrant ssh -- cat /usr/sbin/forward_slave_mount_sym_link_test/machine-id
vagrant ssh -- cat /run/forward_slave_mount_sym_link_test/machine-id

echo -en "Testing normal forward mount!\n\t"
vagrant ssh -- cat /tmp/forward_normal_mount_etc/machine-id
Expand Down

0 comments on commit 99a62bb

Please sign in to comment.