about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-06-27 16:27:13 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-06-27 16:28:34 -0700
commit3dfbc5a9c49d65295bf96ce435a29df72e03c09e (patch)
tree5839b72aefad117928ed62f453922d4a9ea0833d /src
parent4c86a0431b637edd23b91234765402bb41edcae8 (diff)
downloadrust-3dfbc5a9c49d65295bf96ce435a29df72e03c09e.tar.gz
rust-3dfbc5a9c49d65295bf96ce435a29df72e03c09e.zip
rustpkg: Silence extra output from rustpkg tests
Closes #7250
Diffstat (limited to 'src')
-rw-r--r--src/librustpkg/tests.rs4
-rw-r--r--src/librustpkg/util.rs6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/librustpkg/tests.rs b/src/librustpkg/tests.rs
index afeb6407533..8b72b08e6fe 100644
--- a/src/librustpkg/tests.rs
+++ b/src/librustpkg/tests.rs
@@ -144,10 +144,10 @@ fn command_line_test(args: &[~str], cwd: &Path) -> ProcessOutput {
                                                            err_fd: None
                                                           });
     let output = prog.finish_with_output();
-    io::println(fmt!("Output from command %s with args %? was %s {%s}[%?]",
+    debug!("Output from command %s with args %? was %s {%s}[%?]",
                     cmd, args, str::from_bytes(output.output),
                    str::from_bytes(output.error),
-                   output.status));
+                   output.status);
 /*
 By the way, rustpkg *won't* return a nonzero exit code if it fails --
 see #4547
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index 38e6a4824af..cb9bbf80ea8 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -187,7 +187,7 @@ pub fn compile_input(ctxt: &Ctx,
         Lib => lib_crate,
         Test | Bench | Main => bin_crate
     };
-    let matches = getopts(~[~"-Z", ~"time-passes"]
+    let matches = getopts(debug_flags()
                           + match what {
                               Lib => ~[~"--lib"],
                               // --test compiles both #[test] and #[bench] fns
@@ -415,3 +415,7 @@ mod test {
     }
 
 }
+
+// tjc: cheesy
+fn debug_flags() -> ~[~str] { ~[] }
+// static debug_flags: ~[~str] = ~[~"-Z", ~"time-passes"];
\ No newline at end of file