]> git.lizzy.rs Git - rust.git/commit
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
authorbors <bors@rust-lang.org>
Tue, 8 Feb 2022 20:50:41 +0000 (20:50 +0000)
committerbors <bors@rust-lang.org>
Tue, 8 Feb 2022 20:50:41 +0000 (20:50 +0000)
commitcaeebd6b095d12f657cc1a9f176d5c9e1e372b21
treef6a0afd64de0f56af8391d1dc55bae844187b6c9
parent2590701b2ac9004418c5ec49896f2cf2c5016df5
parent04dce4aed45540db007a2d1f70c5c02af8e64422
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen

Support `cargo dev bless` for tests with revisions

changelog: internal: Support `cargo dev bless` for tests with revisions

Previously bless wouldn't pick up the saved stderr from `target/debug/tests/manual_assert.stage-id.edition2021.stderr` or `target/debug/tests/manual_assert.stage-id.edition2018.stderr` due to there being multiple revisions of the test output

This tweaks compile-test so the built files end up in e.g. `target/debug/tests/ui`, `target/debug/tests/ui-cargo` rather than share the `tests` dir. `cargo dev bless` then uses that to update all the `.stdout/stdout/fixed` files it can find

Also removes an empty file I found, and the logic to remove empty outputs as compiletest doesn't produce empty `.stdout/stderr` files