Skip to content

integration-tests: Remove ignore_status() that hides failures#203

Merged
gursewak1997 merged 1 commit intobootc-dev:mainfrom
cgwalters:fix-integration-tests-robustness
Feb 4, 2026
Merged

integration-tests: Remove ignore_status() that hides failures#203
gursewak1997 merged 1 commit intobootc-dev:mainfrom
cgwalters:fix-integration-tests-robustness

Conversation

@cgwalters
Copy link
Collaborator

The integration tests were using ignore_status() in ways that could hide actual test failures; clean up the suite.

Assisted-by: OpenCode (Claude claude-opus-4-5-20250114)

The integration tests were using ignore_status() in ways that could
hide actual test failures; clean up the suite.

Assisted-by: OpenCode (Claude claude-opus-4-5-20250114)
Signed-off-by: Colin Walters <walters@verbum.org>
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly improves the robustness and readability of the integration tests by refactoring command execution and resource cleanup. The removal of the custom CapturedOutput struct and the ignore_status() calls, in favor of xshell's read()? and run()? methods, simplifies error handling and ensures that command failures are explicitly propagated as test failures. The widespread adoption of scopeguard::defer! macros is a particularly strong improvement, guaranteeing that test resources are consistently cleaned up, even in the event of early exits or panics. This greatly enhances test reliability and reduces the likelihood of resource leaks. Additionally, replacing arbitrary std::thread::sleep calls with the --ssh-wait flag in relevant tests makes the waiting logic more precise and efficient. Overall, these changes contribute to a more maintainable and dependable test suite.

@gursewak1997 gursewak1997 merged commit 47839a6 into bootc-dev:main Feb 4, 2026
18 of 20 checks passed
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.

2 participants