Skip to content

Prevent progress printing 100% if not fully done - #139

Merged
bbannier merged 2 commits into
masterfrom
topic/bbannier/100-percent
Jun 22, 2026
Merged

Prevent progress printing 100% if not fully done#139
bbannier merged 2 commits into
masterfrom
topic/bbannier/100-percent

Conversation

@bbannier

Copy link
Copy Markdown
Member

Previously we could print a test progress of 100% even though there
were still tests running due to how we might round up, and for projects
with huge BTest suite this was pretty likely. With this patch we make
sure we always round down to the nearest integer so we don't report
"all done" before we are actually done.

bbannier added 2 commits June 22, 2026 14:30
Previously we could print a test progress of `100%` even though there
were still tests running due to how we might round up, and for projects
with huge BTest suite this was pretty likely. With this patch we make
sure we _always_ round down to the nearest integer so we don't report
"all done" before we are actually done.
This required a small cleanup to `btest-diff` where shellcheck was
unable to detect that a function was only used in a trap call; we
replaced this with simpler code which does not trigger any warnings.
@bbannier bbannier self-assigned this Jun 22, 2026
@bbannier
bbannier marked this pull request as ready for review June 22, 2026 12:41
@bbannier
bbannier requested a review from timwoj June 22, 2026 12:41
@timwoj

timwoj commented Jun 22, 2026

Copy link
Copy Markdown
Member

I wondered about that, but not enough to go look at it. I'd love to figure out why zeek-testing/zeek-testing-private don't print out progress either like the rest of the btests too, but again not enough that I've prioritized it.

@bbannier
bbannier merged commit 62cec8a into master Jun 22, 2026
39 of 43 checks passed
@bbannier
bbannier deleted the topic/bbannier/100-percent branch June 22, 2026 18:52
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