Tests passing for shared folder mount changes.
This commit is contained in:
parent
681c4a1233
commit
82d26f29e8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue