Skip to content

Commit 74d831a

Browse files
committed
Fix python version in spec test
1 parent e5a3c1a commit 74d831a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cookbooks/aws-parallelcluster-awsbatch/test/controls/awsbatch_virtualenv_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1010
# See the License for the specific language governing permissions and limitations under the License.
1111

12-
python_version = '3.12.8'
1312
base_dir = "/opt/parallelcluster"
1413
pyenv_dir = "#{base_dir}/pyenv"
1514

1615
control 'tag:install_awsbatch_virtualenv_created' do
17-
title "awsbatch virtualenv should be created on #{python_version}"
16+
title "awsbatch virtualenv should be created on #{node['cluster']['python-version']}"
1817
only_if { !os_properties.redhat? }
1918

20-
describe directory("#{pyenv_dir}/versions/#{python_version}/envs/awsbatch_virtualenv") do
19+
describe directory("#{pyenv_dir}/versions/#{node['cluster']['python-version']}/envs/awsbatch_virtualenv") do
2120
it { should exist }
2221
its('mode') { should cmp '0755' }
2322
its('owner') { should eq 'root' }

0 commit comments

Comments
 (0)