Scala Programming Language
  1. Scala Programming Language
  2. SI-7003

Partest ignores some stdout output from tests

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Scala 2.11.0-M4
    • Component/s: Partest
    • Labels:
      None

      Description

      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 SI-6289 which I will clean up later.

        Issue Links

          Activity

          Hide
          A. P. Marki added a comment -

          Using this issue as a supplement to Testicolor transcripts, to include stderr and to update tests:

          https://github.com/scala/scala/pull/2591

          Show
          A. P. Marki added a comment - Using this issue as a supplement to Testicolor transcripts, to include stderr and to update tests: https://github.com/scala/scala/pull/2591
          Hide
          A. P. Marki added a comment -

          Now it ignores output when you tell it to.

          Show
          A. P. Marki added a comment - Now it ignores output when you tell it to.

            People

            • Assignee:
              A. P. Marki
              Reporter:
              Szabolcs Berecz
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development