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 testing more robust #381

Merged
merged 6 commits into from Jul 17, 2023
Merged

Conversation

billschereriii
Copy link
Contributor

Make sure to shut down Redis server even if tests fail.
Do so while still reporting the result of testing

@billschereriii billschereriii added area: build Issues related to builds, makefiles, installs, etc area: test Issues related to the test suite area: CI/CD Issues related to continuous integration and deployment labels Jul 13, 2023
@billschereriii billschereriii self-assigned this Jul 13, 2023
Copy link
Member

@ashao ashao left a comment

Choose a reason for hiding this comment

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

Small tweak, but I want to make sure that you agree from a readability/correctness standpoint

Makefile Outdated
echo "Shutting down standalone Redis server" && \
python utils/launch_redis.py --port $(SR_TEST_PORT) --nodes 1 --stop && \
exit $$testresult) && \
Copy link
Member

Choose a reason for hiding this comment

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

I think this would be slightly more bash-like:

test $$testresult -eq 0 || echo "Tests failed"; exit $$test_result

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that, will adopt

Copy link
Member

@ashao ashao left a comment

Choose a reason for hiding this comment

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

Looks great thanks Bill!

Copy link
Member

@MattToast MattToast left a comment

Choose a reason for hiding this comment

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

LGTM!!

@billschereriii billschereriii merged commit 1c355e6 into CrayLabs:develop Jul 17, 2023
46 checks passed
@billschereriii billschereriii deleted the makefix branch July 17, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Issues related to builds, makefiles, installs, etc area: CI/CD Issues related to continuous integration and deployment area: test Issues related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants