diff options
| author | bors <bors@rust-lang.org> | 2013-09-29 16:21:13 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-29 16:21:13 -0700 |
| commit | 727d4c306c0a14f9d80f94231fd0e520f62fe143 (patch) | |
| tree | 373c0777e77325d12ac3689421aa05a50fc1d21f /src | |
| parent | 9883a6250b61eb4bb715684f9b25304f4f0d437e (diff) | |
| parent | c685e0879c485f3ff44bf46aeaf24f114bf9d097 (diff) | |
| download | rust-727d4c306c0a14f9d80f94231fd0e520f62fe143.tar.gz rust-727d4c306c0a14f9d80f94231fd0e520f62fe143.zip | |
auto merge of #9603 : sfackler/rust/rustpkg-test, r=catamorphism
Previously, if tests failed, you'd only get stderr which isn't very useful, especially if the failure didn't happen directly in a test function (e.g None.unwrap()).
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustpkg/rustpkg.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/librustpkg/rustpkg.rs b/src/librustpkg/rustpkg.rs index 76edd7feff7..e4f88081239 100644 --- a/src/librustpkg/rustpkg.rs +++ b/src/librustpkg/rustpkg.rs @@ -620,14 +620,8 @@ impl CtxMethods for BuildContext { match built_test_in_workspace(pkgid, workspace) { Some(test_exec) => { debug!("test: test_exec = %s", test_exec.to_str()); - let p_output = run::process_output(test_exec.to_str(), [~"--test"]); - if p_output.status == 0 { - println(str::from_utf8(p_output.output)); - } - else { - println(str::from_utf8(p_output.error)); - } - os::set_exit_status(p_output.status); + let status = run::process_status(test_exec.to_str(), [~"--test"]); + os::set_exit_status(status); } None => { error(fmt!("Internal error: test executable for package ID %s in workspace %s \ |
