Skip to content

tests: Improve diagnostics and robustness of test shell scripts #81

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

Merged
merged 2 commits into from
Apr 10, 2025

Conversation

euanh
Copy link
Collaborator

@euanh euanh commented Apr 10, 2025

Motivation

Tests scripts are used by GitHub Actions and when running tests locally. They should have consistent structures, clean up after themselves and print useful messages so that failures can be diagnosed.

Modifications

  • Update all test scripts to use the same structure and cleanup options as run-integration-tests.sh
  • Add better diagnostic messages

Result

Test failures will be easier to diagnose

Test Plan

Existing tests continue to pass.

@euanh euanh added area/testing Improvements to tests. semver/none No version bump required. labels Apr 10, 2025
@euanh euanh changed the title tests: Make test-elf-detection.sh more robust tests: Make test shell scripts used by GitHub Actions more robust Apr 10, 2025
@euanh euanh changed the title tests: Make test shell scripts used by GitHub Actions more robust tests: Improve diagnostics and robustness of test shell scripts Apr 10, 2025
@euanh euanh force-pushed the test-script-robustness branch from e93e408 to bb98b64 Compare April 10, 2025 12:28
@euanh euanh merged commit 4c6f38d into apple:main Apr 10, 2025
20 checks passed
@euanh euanh deleted the test-script-robustness branch April 10, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Improvements to tests. semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant