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

Add some more logs to bash script used for DockerHealthcheckWaitStratgyTest #2988

Merged
merged 4 commits into from
Aug 1, 2020

Conversation

kiview
Copy link
Member

@kiview kiview commented Jul 11, 2020

Echo once the file has been written and make bash script fail on error.

Might help is in identifying the reason for flaky test in case of DockerHealthcheckWaitStratgyTest.startsOnceHealthy().

…egyTest

Echo once file has been written and make bash script fail on error.
@@ -1,8 +1,11 @@
#!/bin/ash

set -e
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should do:

Suggested change
set -e
set -ex

so that the shell automatically logs the command that's about to be run.

We could actually just get rid of all the echos then...

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, added your suggestion accordingly.

@rnorth rnorth merged commit 0c69b44 into master Aug 1, 2020
@rnorth rnorth deleted the healthcheck-debug branch August 1, 2020 14:44
artjomka pushed a commit to artjomka/testcontainers-java that referenced this pull request Aug 2, 2020
…gyTest (testcontainers#2988)

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
Co-authored-by: Richard North <rich.north@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants