about summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2016-01-19 15:01:22 +1300
committerNick Cameron <ncameron@mozilla.com>2016-01-19 15:02:56 +1300
commite305ee6db9a0cfb5b01f3b23d01edaab6a5018ca (patch)
treeb25608fb97988c04ffd7de872fa2dda280b31544 /src/libtest
parent2acfa838a09d5d142dc691802d7f001195fea0ec (diff)
downloadrust-e305ee6db9a0cfb5b01f3b23d01edaab6a5018ca.tar.gz
rust-e305ee6db9a0cfb5b01f3b23d01edaab6a5018ca.zip
manual fixups
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/lib.rs33
1 files changed, 13 insertions, 20 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
index b51c2c2824d..ac5b235854a 100644
--- a/src/libtest/lib.rs
+++ b/src/libtest/lib.rs
@@ -316,27 +316,20 @@ impl TestOpts {
 /// Result of parsing the options.
 pub type OptRes = Result<TestOpts, String>;
 
+#[cfg_attr(rustfmt, rustfmt_skip)]
 fn optgroups() -> Vec<getopts::OptGroup> {
-    vec![getopts::optflag("", "ignored", "Run ignored tests"),
-         getopts::optflag("", "test", "Run tests and not benchmarks"),
-         getopts::optflag("", "bench", "Run benchmarks instead of tests"),
-         getopts::optflag("h", "help", "Display this message (longer with --help)"),
-         getopts::optopt("",
-                         "logfile",
-                         "Write logs to the specified file instead of stdout",
-                         "PATH"),
-         getopts::optflag("",
-                          "nocapture",
-                          "don't capture stdout/stderr of each task, allow printing directly"),
-         getopts::optopt("",
-                         "color",
-                         "Configure coloring of output:
-            auto   = colorize if stdout \
-                          is a tty and tests are run on serially (default);
-            always = \
-                          always colorize output;
-            never  = never colorize output;",
-                         "auto|always|never")]
+    vec!(getopts::optflag("", "ignored", "Run ignored tests"),
+      getopts::optflag("", "test", "Run tests and not benchmarks"),
+      getopts::optflag("", "bench", "Run benchmarks instead of tests"),
+      getopts::optflag("h", "help", "Display this message (longer with --help)"),
+      getopts::optopt("", "logfile", "Write logs to the specified file instead \
+                          of stdout", "PATH"),
+      getopts::optflag("", "nocapture", "don't capture stdout/stderr of each \
+                                         task, allow printing directly"),
+      getopts::optopt("", "color", "Configure coloring of output:
+            auto   = colorize if stdout is a tty and tests are run on serially (default);
+            always = always colorize output;
+            never  = never colorize output;", "auto|always|never"))
 }
 
 fn usage(binary: &str) {