Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# pcluster.sh:
# Setup ParallelCluster environment variables
#

PATH=$PATH:<%= @cfn_bootstrap_virtualenv_path %>/bin
PATH=<%= @cfn_bootstrap_virtualenv_path %>/bin:$PATH

export PATH
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
its('mode') { should cmp '0644' }
its('owner') { should eq 'root' }
its('group') { should eq 'root' }
its('content') { should match "PATH=\\$PATH:#{pyenv_dir}/versions/#{cfn_python_version}/envs/cfn_bootstrap_virtualenv/bin" }
its('content') { should match "PATH=#{pyenv_dir}/versions/#{cfn_python_version}/envs/cfn_bootstrap_virtualenv/bin:\\$PATH" }
end

desc "cfn-init needs to be from the cfnbootstrap virtualenv"
describe bash("sudo -u #{node['cluster']['cluster_user']} -i which cfn-init") do
its('exit_status') { should eq(0) }
its('stdout') { should match("#{pyenv_dir}/versions/#{cfn_python_version}/envs/cfn_bootstrap_virtualenv/bin/cfn-init") }
end unless os_properties.on_docker?
end