Skip to content

Commit

Permalink
[nextest] update testrunner
Browse files Browse the repository at this point in the history
Pick up an improvement to publish the binary ID (classname) in the JUnit
output.
  • Loading branch information
sunshowers authored and bors-libra committed Apr 19, 2021
1 parent 0ff9c93 commit e2facbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions devtools/x/src/nextest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,17 @@ pub fn run(args: Args, xctx: XContext) -> Result<()> {
),
);

// Construct the friendly name from the package and build target.
let mut friendly_name = package.name().to_owned();
// Construct the binary ID from the package and build target.
let mut binary_id = package.name().to_owned();
if artifact.target.name != package.name() {
friendly_name.push_str("::");
friendly_name.push_str(&artifact.target.name);
binary_id.push_str("::");
binary_id.push_str(&artifact.target.name);
}
let friendly_name = Some(friendly_name);

executables.push(TestBinary {
binary,
binary_id,
cwd,
friendly_name,
});
}
}
Expand Down

0 comments on commit e2facbd

Please sign in to comment.