Skip to content

Commit 3d262a2

Browse files
committed
Allow revisions for compile-time stdin, just like with runtime stdin
1 parent 8ed1b5e commit 3d262a2

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ui_test"
3-
version = "0.21.0"
3+
version = "0.21.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "A test framework for testing rustc diagnostics output"

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,11 @@ impl dyn TestStatus {
637637

638638
let mut cmd = build_command(path, &config, revision, comments)?;
639639
cmd.args(&extra_args);
640-
let stdin = path.with_extension("stdin");
640+
let stdin = path.with_extension(if revision.is_empty() {
641+
"stdin".into()
642+
} else {
643+
format!("{revision}.stdin")
644+
});
641645
if stdin.exists() {
642646
cmd.stdin(std::fs::File::open(stdin).unwrap());
643647
}

tests/integrations/basic-bin/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/basic-fail-mode/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/basic-fail/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/basic/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integrations/cargo-run/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)