Skip to content

fix: recalibration gate e2e test exit code - #762

Merged
cschanhniem merged 1 commit into
mainfrom
fix/recalibration-gate-e2e-exit-code
Jul 9, 2026
Merged

cschanhniem merged 1 commit into
mainfrom
fix/recalibration-gate-e2e-exit-code

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Summary

  • make exits with code 2 when any recipe fails, regardless of the underlying script's exit code
  • The test was asserting returncode == 3 from make recalibration-gate-example, which always got 2
  • Fix: call the Python module directly via sys.executable -m openamp_foundry.cli so the true exit code (3) is captured

Test plan

  • tests/test_recalibration_gate_e2e.py — all 3 tests pass

make exits with code 2 on any recipe failure regardless of the script's
exit code, so asserting returncode==3 from make always failed. Call the
Python module directly to get the true exit code from the gate script.
@cschanhniem
cschanhniem merged commit acc173f into main Jul 9, 2026
1 check failed
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