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

Keep subprocess_results.log around when test fails #1161

Merged
merged 2 commits into from
May 12, 2023

Conversation

oschwaldp-oci
Copy link
Contributor

@oschwaldp-oci oschwaldp-oci commented May 11, 2023

Reopen checkOutputFilename (subprocess_results.log) in case where file may have been deleted, but attr was already set.

Allows for cases where Cluster.cleanup is called initially in tests to remove old test data, which should no longer be a problem, however in doing so it now deletes subprocess_results.log while attr for checkOutputFile has already been set. This allows reopening/recreating the file and continuing to log to it to capture all commands after the initial cleanup.

…but attr was already set.

Allows for cases where Cluster cleanup is called initially in tests to remove old test data, which should no longer be a problem, however in doing so it now deletes subprocess_results.log while attr for checkOutputFile has already been set.  This allows reopening/recreating the file and continuing to log to it to capture all commands after the initial cleanup.
Copy link
Member

@heifner heifner left a comment

Choose a reason for hiding this comment

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

This keeps subprocess_results.log around. Thanks!

@heifner heifner added the OCI Work exclusive to OCI team label May 11, 2023
@heifner heifner added this to the Leap v5.0.0-rc1 milestone May 11, 2023
@oschwaldp-oci oschwaldp-oci changed the title Reopen checkOutputFilename in case where file may have been deleted, … Keep subprocess_results.log around when test fails May 11, 2023
@heifner heifner requested a review from ScottBailey May 11, 2023 17:05
@oschwaldp-oci oschwaldp-oci merged commit 3bac4d8 into main May 12, 2023
@oschwaldp-oci oschwaldp-oci deleted the reopen-subprocess-results branch May 12, 2023 19:11
@bhazzard bhazzard removed this from the Leap v5.0.0-rc1 milestone Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants