Skip to content

Require successful commands in network output assertions - #28

Open
geroldsteiner67 wants to merge 1 commit into
mainfrom
fix/network-assert-exit-status-20261022
Open

geroldsteiner67 wants to merge 1 commit into
mainfrom
fix/network-assert-exit-status-20261022

Conversation

@geroldsteiner67

Copy link
Copy Markdown
Contributor

Summary

  • Make assert_output_contains require both a zero exit status and matching output. Previously a failed network command could pass a smoke test if its error text included the expected word.
  • Add a shell regression self-test for successful, failed-with-matching-output, and missing-pattern cases.

Validation

  • bash tests/network/test-lib-self-test.sh
  • bash -n tests/network/test-lib.sh tests/network/test-lib-self-test.sh
  • PATH=/root/.openclaw/workspace/modality/rust/target/debug:$PATH timeout 90s bash tests/network/01-ping-node/test.sh (10/10)
  • git diff --check

Shell-only change; the Rust code gates in AGENTS.md do not apply.

This branch has not been deployed

No deployments
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.

1 participant