Tests passing for shared folder mount changes.

This commit is contained in:
Mitchell Hashimoto 2010-12-30 21:06:21 -06:00
parent 681c4a1233
commit 82d26f29e8
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 0.7.0.beta2 (unreleased)
- Use numeric uid/gid in mounting shared folders to increase portability. [GH-252]
## 0.7.0.beta (December 24, 2010)
- VirtualBox 4.0 support. Support for VirtualBox 3.2 is _dropped_, since

View File

@ -61,7 +61,7 @@ class LinuxSystemTest < Test::Unit::TestCase
end
should "execute the proper mount command" do
@ssh.expects(:exec!).with("sudo mount -t vboxsf -o uid=#{@vm.env.config.ssh.username},gid=#{@vm.env.config.ssh.username} #{@name} #{@guestpath}").returns(@success_return)
@ssh.expects(:exec!).with("sudo mount -t vboxsf -o uid=`id -u #{@vm.env.config.ssh.username}`,gid=`id -g #{@vm.env.config.ssh.username}` #{@name} #{@guestpath}").returns(@success_return)
mount_folder
end
@ -107,7 +107,7 @@ class LinuxSystemTest < Test::Unit::TestCase
@vm.stubs(:env).returns(env)
@ssh.expects(:exec!).with("sudo mount -t vboxsf -o uid=#{uid},gid=#{gid} #{@name} #{@guestpath}").returns(@success_return)
@ssh.expects(:exec!).with("sudo mount -t vboxsf -o uid=`id -u #{uid}`,gid=`id -g #{gid}` #{@name} #{@guestpath}").returns(@success_return)
mount_folder
end
end