1
Fork 0
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:
Roy Ivy III 2020-06-13 14:38:43 -05:00
parent b055ec34e7
commit cbac6cc903
2 changed files with 4 additions and 1 deletions

View file

@ -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());
}

View file

@ -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>>,