Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upShorter output for `rustc --test` binaries. #31887
Conversation
SimonSapin
added a commit
to servo/html5ever
that referenced
this pull request
Feb 25, 2016
SimonSapin
referenced this pull request
Feb 25, 2016
Merged
Use shrinked output built into the test harness. #200
SimonSapin
force-pushed the
SimonSapin:quiet-test
branch
from
4a32a10
to
7c288b0
Feb 25, 2016
SimonSapin
added a commit
to servo/html5ever
that referenced
this pull request
Feb 25, 2016
SimonSapin
force-pushed the
SimonSapin:quiet-test
branch
2 times, most recently
from
1598260
to
0412918
Feb 26, 2016
This comment has been minimized.
This comment has been minimized.
|
I personally think that the ship has unfortunately sailed on changing libtest too much right now. We've talked a bit about custom test frameworks/runners recently and this would certainly be easily fixed by a custom test runner, and until that time we may just not be able to change the format in terms of stability In terms of personal opinion, I can see the value in having a more terse output but I prefer to see the longer output. It allows easily diffing two runs to see which test deadlocked, in single threaded mode it shows which test is running (to see what deadlocked), etc. |
This comment has been minimized.
This comment has been minimized.
|
Regarding stability: would it be better if this new output was not the default? Maybe with a Regarding preference: that’s why the old output is still available with |
SimonSapin
force-pushed the
SimonSapin:quiet-test
branch
2 times, most recently
from
6124641
to
f4d71e2
Feb 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Oh last time I meant to cc @rust-lang/tools I don't think |
This comment has been minimized.
This comment has been minimized.
|
Re For what it’s worth, I’ve applied this to https://crates.io/crates/rustc-test. You can see it in action in https://travis-ci.org/servo/html5ever/jobs/111813368#L281 |
alexcrichton
self-assigned this
Mar 6, 2016
alexcrichton
added
the
T-tools
label
Mar 6, 2016
This comment has been minimized.
This comment has been minimized.
|
Ok, we discussed this in the tools triage meeting today, and the conclusion was that we probably want to leave the output the same as-is today, but we're fine with a flag being added to enable this output. Would you be ok with that @SimonSapin? |
alexcrichton
added
relnotes
and removed
T-tools
labels
Mar 9, 2016
SimonSapin
force-pushed the
SimonSapin:quiet-test
branch
from
f4d71e2
to
a5cafc2
Mar 9, 2016
This comment has been minimized.
This comment has been minimized.
|
Alright. I’ve amended the commit to flip the default. |
alexcrichton
reviewed
Mar 10, 2016
| $(call RUN,test-ignore-cfg) | grep 'shouldnotignore ... ok' | ||
| $(call RUN,test-ignore-cfg) | grep 'shouldignore ... ignored' | ||
| $(call RUN,test-ignore-cfg) --verbose | grep 'shouldnotignore ... ok' | ||
| $(call RUN,test-ignore-cfg) --verbose | grep 'shouldignore ... ignored' |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Mar 10, 2016
Member
This and the previous test can be reverted to what they once were, right?
This comment has been minimized.
This comment has been minimized.
|
Thanks! Can you also add a test for this switch + output? |
SimonSapin
force-pushed the
SimonSapin:quiet-test
branch
from
a5cafc2
to
5b372cf
Mar 10, 2016
SimonSapin
added some commits
Feb 25, 2016
SimonSapin
force-pushed the
SimonSapin:quiet-test
branch
from
a92b1a4
to
d23fd71
Mar 15, 2016
This comment has been minimized.
This comment has been minimized.
|
Done. |
SimonSapin commentedFeb 25, 2016
Until now, a program created with
rustc --testprints at least one line per test. This can be very verbose, especially with data-driven tests when hundreds or thousands of tests is not rare.This changes the default output to one character per test (except metrics and benchmarks results which have additional data to show):
The previous behavior is available by passingEdit: the default is now unchanged,--verboseto the test program. Maybecargo test --verbosecould be changed to do that?-qor--quietenables the new output.