Skip to content

tools/asahi: load mt7932_power by path in the 6 GHz policy tool - #622

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
hostfix/mt7932-policy-isolated
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
hostfix/mt7932-policy-isolated

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

mt7932-policy-6ghz.py imported its sibling mt7932_power through sys.path. Under python3 -I, which the host-test runs use, the script directory is not on sys.path, so the tool and its 25-case test failed. It now loads the sibling from its own directory. Plain python3 was already fine, which is why it passed in some runs and not others.

Before (python3 -I): ModuleNotFoundError: No module named 'mt7932_power'
After: 25/25 OK under both python3 -I and python3.

Evidence (buildbox, python3 -I, logs in aurora-ctl/reports/hostfail-20261030/) on integration/aurora 71b3fdb. The same change passes on aurora-wip 6a42fae, where tools/asahi is identical. Test-only change, no driver code touched.

🤖 Generated with Claude Code

mt7932-policy-6ghz.py imported its sibling mt7932_power through
sys.path. Under 'python3 -I', which our host-test runs use, the script
directory is not on sys.path, so the tool and its test failed with
ModuleNotFoundError. Load the sibling from the tool's own directory.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RyanTheTide
RyanTheTide merged commit f60ee6e into integration/aurora Oct 30, 2026
@RyanTheTide
RyanTheTide deleted the hostfix/mt7932-policy-isolated branch October 30, 2026 06:23
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