Skip to content

Commit ff6dc03

Browse files
committed
[Test] Fix kitchen test related to enroot
Signed-off-by: Giacomo Marciani <[email protected]>
1 parent 4f18801 commit ff6dc03

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cookbooks/aws-parallelcluster-platform/test/controls/enroot_spec.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@
3232

3333
control 'tag:config_enroot_enabled_on_graphic_instances' do
3434
only_if { !os_properties.on_docker? && ['yes', true].include?(node['cluster']['nvidia']['enabled']) }
35-
36-
describe file("/var/enroot/cache-group-1000") do
37-
it { should exist }
38-
its('group') { should eq 'root' }
39-
end unless os_properties.redhat_on_docker?
35+
describe 'enroot service should be enabled' do
36+
subject { command("enroot version") }
37+
its('exit_status') { should cmp == 0 }
38+
end
4039
end
4140

4241
control 'tag:config_enroot_disabled_on_non_graphic_instances' do

0 commit comments

Comments
 (0)