Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile.sh: correct bug of last test not in report #24

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Conversation

eroussy
Copy link
Member

@eroussy eroussy commented Mar 20, 2023

It was noticed that the last test of each category wasn't displayed in the report. The problem was obviously a mistake in a loop that doesn't handle the last test.

In fact, the while loop reading test cases uses bash process substitution which is a bad idea. This method split lines on newline character and will thus not handle the last line if it is not terminated by a newline character.

Piping a variable directly in the while loop do this job and the last test appear.

It was noticed that the last test of each category wasn't displayed in
the report. The problem was obviously a mistake in a loop that doesn't
handle the last test.

In fact, the while loop reading test cases uses bash process substitution
which is a bad idea. This method split lines on newline character and
will thus not handle the last line if it is not terminated by a newline
character.

Piping a variable directly in the while loop do this job and the last
test appear.

Signed-off-by: Erwann Roussy <[email protected]>
@eroussy eroussy linked an issue Mar 20, 2023 that may be closed by this pull request
@eroussy eroussy marked this pull request as ready for review March 20, 2023 13:00
@eroussy eroussy merged commit f6d65bf into main Mar 20, 2023
@eroussy eroussy deleted the eroussy-fix-1 branch March 20, 2023 13:00
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.

The last test-id is not present in the report
2 participants