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

bugfix setup hook still running when --self-setup on #140

Merged
merged 2 commits into from
Aug 29, 2022

Conversation

LegenJCdary
Copy link
Collaborator

bugfix 4c75723

@LegenJCdary LegenJCdary added the bug Something isn't working label Jul 4, 2022
@LegenJCdary LegenJCdary force-pushed the bugfix_setuphook_always_running branch 2 times, most recently from 08710ef to 0144e15 Compare July 4, 2022 10:19
@LegenJCdary LegenJCdary requested a review from cinek810 July 4, 2022 10:29
@LegenJCdary LegenJCdary force-pushed the bugfix_setuphook_always_running branch from 0144e15 to 2c63112 Compare July 4, 2022 10:30
@@ -36,6 +36,7 @@ jobs:
./tests/01-test_argument_parsing.sh
./tests/02-checkrun.sh
mkdir -p /etc/alt-workdir
pushd /etc/alt-workdir && /etc/ansible-deployer/hooks/setup_work_dir.sh && popd
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be multiline - if we fail to setup_work_dir we still want to popd ?

@@ -5,12 +5,10 @@ source ./tests/testing_lib.sh

# Check if cwd is correctly switched when using --self-setup option
check_message_in_output "ansible-deployer run -t task_exec_bin_true -s testing -i testInfra -d --self-setup /etc/alt-workdir" "\[DEBUG\]: Successfully created workdir: /tmp/"
check_message_in_output "ansible-deployer run -t task_exec_bin_true -s testing -i testInfra -d --self-setup /etc/alt-workdir" "\[INFO\]: Setup completed in /etc/alt-workdir"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should check if it's not in output? We had a bug so we need a regression test against the fix

@LegenJCdary LegenJCdary force-pushed the bugfix_setuphook_always_running branch from 2c63112 to e5879c4 Compare July 5, 2022 07:21
@LegenJCdary LegenJCdary requested a review from cinek810 July 5, 2022 07:31
@LegenJCdary LegenJCdary force-pushed the bugfix_setuphook_always_running branch 2 times, most recently from 29fd1cb to b51413c Compare August 25, 2022 07:32
@LegenJCdary LegenJCdary force-pushed the bugfix_setuphook_always_running branch from b51413c to 248ae3f Compare August 29, 2022 11:30
@LegenJCdary LegenJCdary merged commit 884d527 into main Aug 29, 2022
@LegenJCdary LegenJCdary deleted the bugfix_setuphook_always_running branch August 29, 2022 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants