Repository navigation
tools/asahi: load mt7932_power by path in the 6 GHz policy tool - #622
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mt7932-policy-6ghz.pyimported its siblingmt7932_powerthrough sys.path. Underpython3 -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. Plainpython3was 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 -Iandpython3.Evidence (buildbox,
python3 -I, logs inaurora-ctl/reports/hostfail-20261030/) on integration/aurora 71b3fdb. The same change passes on aurora-wip 6a42fae, wheretools/asahiis identical. Test-only change, no driver code touched.🤖 Generated with Claude Code