Skip to content

fix(dim-testsuite): compare shell command output as bytes - #322

Open
miesi wants to merge 1 commit into
IONOS-Core:masterfrom
miesi:fix/runtest-shell-output
Open

miesi wants to merge 1 commit into
IONOS-Core:masterfrom
miesi:fix/runtest-shell-output

Conversation

@miesi

@miesi miesi commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

process_command() gets the output of shell lines and the expected lines as bytes, but stripped and matched them with str arguments. Any shell line with an expected output died with a TypeError, so such a line could not be used in a test at all. Only the drill checks of the pdns-output tests have one, and they need a running pdns-output.

Use bytes throughout, including the fill value for missing lines.

works until 2099 which I consider "good enough"

process_command() gets the output of shell lines and the expected lines
as bytes, but stripped and matched them with str arguments. Any shell
line with an expected output died with a TypeError, so such a line
could not be used in a test at all. Only the drill checks of the
pdns-output tests have one, and they need a running pdns-output.

Use bytes throughout, including the fill value for missing lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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