File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
cookbooks/aws-parallelcluster-platform/test/controls Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 318318 end
319319 end
320320end
321+
322+ control 'tag:config_dcv_xorg_running_with_x11_session_type' do
323+ title 'Check that Xorg is running and GDM is using X11 session type (not Wayland)'
324+ only_if do
325+ !os_properties . on_docker? &&
326+ instance . head_node? &&
327+ instance . dcv_installed? &&
328+ node [ 'cluster' ] [ 'dcv_enabled' ] == "head_node" &&
329+ instance . graphic? &&
330+ instance . nvidia_installed? &&
331+ instance . dcv_gpu_accel_supported?
332+ end
333+
334+ describe 'Xorg process should be running' do
335+ subject { command ( 'pidof Xorg || pidof X' ) }
336+ its ( 'exit_status' ) { should eq 0 }
337+ its ( 'stdout' ) { should_not be_empty }
338+ end
339+
340+ describe 'GDM should be using X11 session type, not Wayland' do
341+ subject { command ( "loginctl show-session $(loginctl | grep gdm | awk '{print $1}') -p Type 2>/dev/null | grep -i x11" ) }
342+ its ( 'exit_status' ) { should eq 0 }
343+ end
344+ end
You can’t perform that action at this time.
0 commit comments