-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
08710ef
to
0144e15
Compare
0144e15
to
2c63112
Compare
.circleci/config.yml
Outdated
@@ -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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
2c63112
to
e5879c4
Compare
29fd1cb
to
b51413c
Compare
bugfix 4c75723 adjust tests and circle cfg
b51413c
to
248ae3f
Compare
bugfix 4c75723