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

Make the tests more robust (avoid sleep) and use functions from test-lib.sh #94

Merged
merged 1 commit into from
May 7, 2020

Conversation

hhorak
Copy link
Member

@hhorak hhorak commented May 7, 2020

Sleep was sometimes too short on slower machines, which caused tests to fail.
Let's rather use waiting in a loop, which works nice in other containers.

There are also some functions in the test-lib.sh that we can use and get rid
of the code duplication.

…lib.sh

Sleep was sometimes too short on slower machines, which caused tests to fail.
Let's rather use waiting in a loop, which works nice in other containers.

There are also some functions in the test-lib.sh that we can use and get rid
of the code duplication.
Copy link
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

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

Code LGTM. Most of the functions were deleted and used from container-common-scripts. Great. +1

Just small nit-pick. What about to move run and run_command functions into the container-common-scripts as well.

But it does not block this Pull Request. Tests are passing which is awesome.

@phracek
Copy link
Member

phracek commented May 7, 2020

[test-openshift]

Copy link
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

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

LGTM.

@hhorak
Copy link
Member Author

hhorak commented May 7, 2020

Just small nit-pick. What about to move run and run_command functions into the container-common-scripts as well.

Right, makes sense. I've created an issue for this at sclorg/container-common-scripts#148 so we don't forget.

@hhorak
Copy link
Member Author

hhorak commented May 7, 2020

Good, merging then.

@hhorak hhorak merged commit dd8cd5b into sclorg:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants