Skip to content

Conversation

@peterbarker
Copy link
Contributor

the infrastructure now takes care of all of this cleanup.

Particularly when reboots are involved removing these can make things faster

@peterbarker
Copy link
Contributor Author

Hinted at by #30574

@peterbarker
Copy link
Contributor Author

I have had to ask people to remove pointless push/pop in several PRs.

This PR best seen with "Hide whitespace" set.

@tpwrules
Copy link
Contributor

tpwrules commented Nov 2, 2025

It looks like this broke at least one test?

Is it possible to split this up into one commit per test?

@peterbarker peterbarker force-pushed the pr/remove-pointless-try-except branch from ca42605 to d8c1214 Compare November 2, 2025 21:31
@peterbarker
Copy link
Contributor Author

It looks like this broke at least one test?

I removed that one from this PR.

Is it possible to split this up into one commit per test?

Yes, but I'd rather not as the changes are all very similar and we don't want to have vast numbers of commits. Bearing in mind there are probably 100 more places we could do the same sort of thing in the suite.

I really just did do a grep and look at individual cases here to get an idea of how the PR I linked above involves fixing.

the infrastructure now takes care of all of this cleanup.

Particularly when reboots are involved removing these can make things faster
@peterbarker peterbarker force-pushed the pr/remove-pointless-try-except branch from d8c1214 to d7ca8cc Compare November 2, 2025 22:34
Copy link
Contributor

@tpwrules tpwrules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, thanks for the review tip. Surely lots more clean up to be done and documentation on what a test can expect from the harness :)

@tpwrules tpwrules merged commit 985ef73 into ArduPilot:master Nov 4, 2025
59 checks passed
@peterbarker peterbarker deleted the pr/remove-pointless-try-except branch November 5, 2025 03:59
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.

2 participants