mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Add support for video resolution hinting tests
make sure all tests pass
This commit is contained in:
parent
77604a143b
commit
5296bde844
@ -285,12 +285,9 @@
|
||||
<gl enable='yes'/>
|
||||
</graphics><% end -%>
|
||||
<video>
|
||||
<model type='<%= @video_type %>'
|
||||
vram='<%= @video_vram %>'
|
||||
heads='1'>
|
||||
<% if @video_accel3d %><acceleration accel3d='yes'/><%- end -%>
|
||||
<% if @video_resolution_x and @video_resolution_y %><resolution x='<%= @video_resolution_x %>' y='<%= @video_resolution_y %>'/><%- end -%>
|
||||
</model>
|
||||
<model type='<%= @video_type %>' vram='<%= @video_vram %>' heads='1'<% if not @video_accel3d and not (@video_resolution_x and @video_resolution_y)%>/><% else %>>
|
||||
<% if @video_accel3d %><acceleration accel3d='yes'/><% end %><% if @video_resolution_x and @video_resolution_y %><resolution x='<%= @video_resolution_x %>' y='<%= @video_resolution_y %>'/><% end %>
|
||||
</model><% end %>
|
||||
</video>
|
||||
<%#End Video -%>
|
||||
<%- end -%>
|
||||
|
@ -129,7 +129,7 @@
|
||||
</graphics>
|
||||
<video>
|
||||
<model type='virtio' vram='16384' heads='1'>
|
||||
<acceleration accel3d='yes'/>
|
||||
<acceleration accel3d='yes'/><resolution x='1920' y='1080'/>
|
||||
</model>
|
||||
</video>
|
||||
<rng model='virtio'>
|
||||
|
@ -136,6 +136,8 @@ describe 'templates/domain' do
|
||||
domain.nodeset = '1-4,^3,6'
|
||||
|
||||
domain.video_accel3d = true
|
||||
domain.video_resolution_x = 1920
|
||||
domain.video_resolution_y = 1080
|
||||
end
|
||||
let(:test_file) { 'domain_all_settings.xml' }
|
||||
it 'renders template' do
|
||||
|
Loading…
Reference in New Issue
Block a user