mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
tests ~ increase test detail to diagnose MacOS hostname test failure
This commit is contained in:
parent
b055ec34e7
commit
cbac6cc903
2 changed files with 4 additions and 1 deletions
|
@ -12,7 +12,9 @@ fn test_hostname() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_hostname_ip() {
|
fn test_hostname_ip() {
|
||||||
let result = new_ucmd!().arg("-i").succeeds();
|
let result = new_ucmd!().arg("-i").run();
|
||||||
|
println!("{:#?}", result);
|
||||||
|
assert!(result.success);
|
||||||
assert!(!result.stdout.trim().is_empty());
|
assert!(!result.stdout.trim().is_empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ pub fn repeat_str(s: &str, n: u32) -> String {
|
||||||
|
|
||||||
/// A command result is the outputs of a command (streams and status code)
|
/// A command result is the outputs of a command (streams and status code)
|
||||||
/// within a struct which has convenience assertion functions about those outputs
|
/// within a struct which has convenience assertion functions about those outputs
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct CmdResult {
|
pub struct CmdResult {
|
||||||
//tmpd is used for convenience functions for asserts against fixtures
|
//tmpd is used for convenience functions for asserts against fixtures
|
||||||
tmpd: Option<Rc<TempDir>>,
|
tmpd: Option<Rc<TempDir>>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue