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

--logfile for libtest doesn't respect --format. #57147

Open
daxpedda opened this issue Dec 27, 2018 · 0 comments · May be fixed by #123365
Open

--logfile for libtest doesn't respect --format. #57147

daxpedda opened this issue Dec 27, 2018 · 0 comments · May be fixed by #123365
Labels
A-libtest Area: #[test] related C-bug Category: This is a bug. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue.

Comments

@daxpedda
Copy link
Contributor

Observed behaviour
When using for example cargo bench -- -Z unstable-options --format json --logfile bench.json, bench.json has the usual human output format. Stdout prints JSON correctly though.

Expected behaviour
I expect to see JSON output in the file, exactly like in stdout.

Notes
I know at the moment rust is working on the custom test framework (#50297), but other people are still relying on the current features (#51924, rust-lang/cargo#5670).
In any case, I think this is a bug, right? Would love to make a PR.

Rustc
rustc 1.33.0-nightly (a7be40c 2018-12-26)

@Centril Centril added T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. A-libtest Area: #[test] related labels Dec 28, 2018
@Enselic Enselic added the C-bug Category: This is a bug. label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-libtest Area: #[test] related C-bug Category: This is a bug. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
Projects
Status: No status
3 participants