mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests ~ increase test detail to diagnose MacOS hostname test failure
This commit is contained in:
@@ -12,7 +12,9 @@ fn test_hostname() {
|
||||
|
||||
#[test]
|
||||
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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
/// within a struct which has convenience assertion functions about those outputs
|
||||
#[derive(Debug)]
|
||||
pub struct CmdResult {
|
||||
//tmpd is used for convenience functions for asserts against fixtures
|
||||
tmpd: Option<Rc<TempDir>>,
|
||||
|
||||
Reference in New Issue
Block a user