Skip to content

Commit 7913a61

Browse files
author
Himani Anil Deshpande
committed
[NVIDIA-IMEX] Test
1 parent edb3e46 commit 7913a61

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cookbooks/aws-parallelcluster-platform/resources/nvidia_imex/partial/_nvidia_imex_common.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
end
5555
# Save Imex version in Node Attributes for InSpec Tests
5656
node.default['cluster']['nvidia']['imex']['version'] = _nvidia_imex_version
57+
node.default['cluster']['nvidia']['imex']['package'] = "#{nvidia_imex_service}-#{node['cluster']['nvidia']['driver_version'].split('.')[0]}"
5758
node_attributes 'dump node attributes'
5859
end
5960

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
nvidia_imex_service = 'nvidia-imex'
1616

17-
describe package(nvidia_imex_service) do
17+
describe package("#{node['cluster']['nvidia']['imex']['package']}") do
1818
it { should be_installed }
1919
its('version') { should match /#{node['cluster']['nvidia']['imex']['version']}/ }
2020
end

0 commit comments

Comments
 (0)