diff options
author | Wez Furlong <wez@wezfurlong.org> | 2019-07-31 15:19:35 -0700 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-07-31 15:26:39 -0700 |
commit | 8ddbb6db8b9da0cfce972ff500844d2ccaeb372f (patch) | |
tree | f04f910e175d2513ce91f2d0a4befe75d0cf78c4 /tests | |
parent | f29ca5b717858d365f0477d824d2069ce727a702 (diff) | |
download | ssh2-rs-8ddbb6db8b9da0cfce972ff500844d2ccaeb372f.zip |
troubleshoot macos test failure
Increase the level of diagnostics in the hope that we learn
more about what's happening with the failure on travis:
https://travis-ci.com/alexcrichton/ssh2-rs/jobs/221391881
Diffstat (limited to 'tests')
-rw-r--r-- | tests/all/channel.rs | 8 | ||||
-rwxr-xr-x | tests/run_integration_tests.sh | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/all/channel.rs b/tests/all/channel.rs index 9053cf0..9abde76 100644 --- a/tests/all/channel.rs +++ b/tests/all/channel.rs @@ -14,6 +14,9 @@ fn consume_stdio(channel: &mut Channel) -> (String, String) { let mut stderr = String::new(); channel.stderr().read_to_string(&mut stderr).unwrap(); + eprintln!("stdout: {}", stdout); + eprintln!("stderr: {}", stderr); + (stdout, stderr) } @@ -88,9 +91,14 @@ fn eof() { fn shell() { let sess = ::authed_session(); let mut channel = sess.channel_session().unwrap(); + eprintln!("requesting pty"); channel.request_pty("xterm", None, None).unwrap(); + eprintln!("shell"); channel.shell().unwrap(); + eprintln!("close"); channel.close().unwrap(); + eprintln!("done"); + consume_stdio(&mut channel); } #[test] diff --git a/tests/run_integration_tests.sh b/tests/run_integration_tests.sh index a1f8b0b..d59f026 100755 --- a/tests/run_integration_tests.sh +++ b/tests/run_integration_tests.sh @@ -60,4 +60,4 @@ sleep 2 # Run the tests against it cargo test --all -cargo test --features vendored-openssl +cargo test --features vendored-openssl -- --nocapture |