Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use a login shell when using become for bats #1890

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Changes from 1 commit
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
Next Next commit
use a login shell when using become for bats
otherwise the puppet path (/opt/puppetlabs/bin) is not loaded and tests
fail to call puppetserver
  • Loading branch information
evgeni committed Dec 17, 2024
commit bdfe96a806b6a65846c123e88d48fdd50236a425
1 change: 1 addition & 0 deletions roles/bats/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
register: "test_output"
ignore_errors: true
environment: "{{ bats_environment }}"
become_flags: '-H -S -n -i'
evgeni marked this conversation as resolved.
Show resolved Hide resolved

- name: "Read results"
shell: "cat {{ bats_output_dir }}/{{ item }}.tap"
Expand Down
Loading