-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix running test suite under Docker Machine #257
Conversation
The -r option is not available on OS X
Looks like my |
I pushed a fix for I also pushed a new commit to this branch to remove a commented out line that should trigger a (hopefully successful) test run. |
Now there seems to be some sort of error with Circle CI...
|
BTW, reading the diff for this PR is much easier if whitespace is ignored since I changed the line endings on two of the files from DOS to Unix: https://github.com/jwilder/nginx-proxy/pull/257/files?w=1 |
I'd like to merge this but, I have not been able to get circleci to run the tests succesfully yet. Seems to be complaining about |
I don't think that the failure is related to I'm not sure why it suddenly started being reported as a problem, however. |
Trying to avoid "Failed to destroy btrfs snapshot" errors on CircleCI
Alright @jwilder Got it green with a couple of changes! 💸 💚 |
Fix running test suite under Docker Machine
Nice @md5! Thanks for this PR! |
Sure thing. It might be nice to still have the I've also got another PR that I'm going to submit in the next few minutes that cuts the test time in half. Hopefully CircleCI doesn't choke on it... |
I left the test containers hanging around on purpose to allow manual tests and ease investigating a failing test case. My workflow is:
we could provide a shell script to remove all containers named 'bats-*' to clean up after bats if no failing case were found |
I was talking about the sibling containers used to run the Curl commands
now.
|
my mistake, then what about cleaning them in the bats For instance, they could be started with the docker label
|
Perhaps. It's not really clear to me whether that would work under
CircleCI. It seems odd to me that “docker rm -vf" would work but not
“docker run --rm".
I was thinking of making the omission of “--rm" conditional on an
environment variable that's only set in circle.yml.
|
* Updates README.md
This PR makes the test suite run correctly under Docker Machine, including under OS X.
Fixes include:
xargs -r
(OS X fix)IFS
to the default due to IFS broken after first run sstephenson/bats#89