Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partest ignores some stdout output from tests #7003

Closed
scabug opened this issue Jan 21, 2013 · 3 comments
Closed

Partest ignores some stdout output from tests #7003

scabug opened this issue Jan 21, 2013 · 3 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Jan 21, 2013

Anytime a particular test run involves running several commands the output of the last command overwrites the previous ones. This is caused by passing around the log file as a File inside partest and opening the log file in truncate mode.

Just an example: this causes all warnings to be ignored in test/files/run tests because the output of the test overwrites the output from scalac.

A related issue is that by default test/partest runs all test with "-deprecation" option while the ant and sbt runners use no option. AFAIK currently it does not make any difference but if this bug is fixed, the test outputs will differ.

You can find the WIP fix including the changes needed to *.check files: [https://github.com/khernyo/scala/commits/unstable/issue/7003]. This is mixed up with a WIP fix for #6289 which I will clean up later.

@scabug
Copy link
Author

scabug commented Jan 21, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7003?orig=1
Reporter: @khernyo
Blocks #6123

@scabug
Copy link
Author

scabug commented May 24, 2013

@som-snytt said:
Using this issue as a supplement to Testicolor transcripts, to include stderr and to update tests:

scala/scala#2591

@scabug
Copy link
Author

scabug commented May 26, 2013

@som-snytt said:
Now it ignores output when you tell it to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants