Skip to content

Commit 9ebd58e

Browse files
hanwen-clusterdemartinofra
authored andcommitted
Kitchen tests: only run EFA test on supported platforms
Signed-off-by: Hanwen <[email protected]>
1 parent db7a0b8 commit 9ebd58e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

recipes/tests.rb

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -224,28 +224,28 @@ module load intelmpi && mpirun --help | grep '#{node['cluster']['intelmpi']['kit
224224
###################
225225
# EFA
226226
###################
227-
if node['cluster']['os'].end_with?("-custom")
228-
# only check EFA is installed because when found in the base AMI we skip installation
229-
bash 'check efa installed' do
230-
cwd Chef::Config[:file_cache_path]
231-
code <<-EFA
232-
set -ex
233-
modinfo efa
234-
cat /opt/amazon/efa_installed_packages
235-
EFA
236-
end
237-
else
238-
# check EFA is installed and the version is expected
239-
bash 'check correct version of efa installed' do
240-
cwd Chef::Config[:file_cache_path]
241-
code <<-EFA
242-
set -ex
243-
modinfo efa
244-
grep "EFA installer version: #{node['cluster']['efa']['installer_version']}" /opt/amazon/efa_installed_packages
245-
EFA
246-
end
247-
# GDR (GPUDirect RDMA)
248-
if node['conditions']['efa_supported']
227+
if node['conditions']['efa_supported']
228+
if node['cluster']['os'].end_with?("-custom")
229+
# only check EFA is installed because when found in the base AMI we skip installation
230+
bash 'check efa installed' do
231+
cwd Chef::Config[:file_cache_path]
232+
code <<-EFA
233+
set -ex
234+
modinfo efa
235+
cat /opt/amazon/efa_installed_packages
236+
EFA
237+
end
238+
else
239+
# check EFA is installed and the version is expected
240+
bash 'check correct version of efa installed' do
241+
cwd Chef::Config[:file_cache_path]
242+
code <<-EFA
243+
set -ex
244+
modinfo efa
245+
grep "EFA installer version: #{node['cluster']['efa']['installer_version']}" /opt/amazon/efa_installed_packages
246+
EFA
247+
end
248+
# GDR (GPUDirect RDMA)
249249
execute 'check efa gdr installed' do
250250
command "modinfo efa | grep 'gdr:\ *Y'"
251251
user node['cluster']['cluster_user']

0 commit comments

Comments
 (0)