tests: Don't use undefined variable

The test.environment variable was removed from the variables defined in
tests.yml in commit 1b207227f3, but it's still used, which causes
Ansible to break:
  The task includes an option with an undefined variable. The error was:
  'dict object' has no attribute 'environment'. 'dict object' has no
  attribute 'environment'

https://src.fedoraproject.org/rpms/toolbox/pull-request/19
This commit is contained in:
Adam Williamson 2024-07-26 13:05:47 -07:00 committed by Debarshi Ray
commit 7de60bb59b
2 changed files with 5 additions and 3 deletions

View file

@ -15,7 +15,6 @@
local_environment:
TEST_NAME: "{{ test.name }}"
TEST_PACKAGE: "{{ test.package }}"
TEST_ENV: "{{ test.environment }}"
- name: "{{ test.name }} | setup/teardown helper | see if exists"
local_action: stat path={{ role_path }}/files/helper.{{ test_name_oneword }}.sh
@ -31,7 +30,7 @@
chdir: /usr/share/{{ test.package }}/test/system
become: "{{ true if test.become is defined else false }}"
become_user: testuser
environment: "{{ local_environment | combine(test.environment) }}"
environment: "{{ local_environment }}"
- name: "{{ test.name }} | pull logs"
fetch:

View file

@ -31,7 +31,7 @@ Version: 0.0.99.5
%endif
%endif
Release: 13%{?dist}
Release: 14%{?dist}
Summary: Tool for interactive command line environments on Linux
License: Apache-2.0
@ -206,6 +206,9 @@ install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/containers/%{name}.conf
%changelog
* Fri Jul 26 2024 Adam Williamson <awilliam@redhat.com> - 0.0.99.5-14
- Fix CI test (hopefully)
* Thu Jul 11 2024 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.5-13
- Silence 'rpminspect --tests=stack-prot'