Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17947

Nested TAP not parsed correctly

    XMLWordPrintable

Details

    Description

      The attached TAP does not parse with "Enable subtests" checked.

      Attachments

        1. exception.txt
          1 kB
        2. tap.txt
          0.2 kB

        Activity

          jameshowe James Howe created issue -
          jameshowe James Howe made changes -
          Field Original Value New Value
          Attachment exception.txt [ 23648 ]
          Attachment tap.txt [ 23649 ]
          Description The following TAP does not parse with "Enable subtests" checked.

          ..3
              1..1
              ok 1 - subtest 1
          ok 1 - test 1
              1..4
              ok 1 - subtest 1
              ok 2 - subtest 2
              ok 3 - subtest 3
              ok 4 - subtest 4
          ok 2 - test 2
              1..15
              Bail out!
              not ok 1 - test 3

          org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.
          at org.tap4j.parser.Tap13Parser.parse(Tap13Parser.java:204)
          at org.tap4j.parser.Tap13Parser.parseFile(Tap13Parser.java:170)
          at org.tap4j.plugin.TapParser.parse(TapParser.java:105)
          at org.tap4j.plugin.TapPublisher.loadResults(TapPublisher.java:297)
          at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:239)
          at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
          at hudson.model.Run.execute(Run.java:1600)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:241)
          Caused by: org.tap4j.parser.ParserException: Duplicated TAP Plan found.
          at org.tap4j.parser.Tap13Parser.onPlan(Tap13Parser.java:394)
          at org.tap4j.parser.Tap13Parser.parseLine(Tap13Parser.java:294)
          at org.tap4j.parser.Tap13Parser.parse(Tap13Parser.java:199)
          ... 13 more
          The attached TAP does not parse with "Enable subtests" checked.
          kinow Bruno P. Kinoshita made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          kinow Bruno P. Kinoshita made changes -
          Labels pending-dependency-release
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          kinow Bruno P. Kinoshita made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 149244 ] JNJira + In-Review [ 206647 ]

          People

            kinow Bruno P. Kinoshita
            jameshowe James Howe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: