Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-955

gitexe and svnexe provider TCK tests fail when path is absolute

    XMLWordPrintableJSON

Details

    Description

      I see the following with Git 2.20+ and Subversion 1.10+:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project maven-scm-provider-gitexe: There are test failures.
      [ERROR]
      [ERROR] Please refer to /var/mosipov/Projekte/maven-scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/target/surefire-reports for the individual test results.
      [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
      [ERROR] -> [Help 1]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project maven-scm-provider-svnexe: There are test failures.
      [ERROR]
      [ERROR] Please refer to /var/mosipov/Projekte/maven-scm/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/target/surefire-reports for the individual test results.
      [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
      [ERROR] -> [Help 1]
      [ERROR]
       

      and

      [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.871 s - in org.apache.maven.scm.provider.svn.svnexe.command.remoteinfo.SvnExeRemoteInfoCommandTckTest
      [INFO] Running org.apache.maven.scm.provider.svn.svnexe.command.info.SvnInfoCommandTest
      [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s - in org.apache.maven.scm.provider.svn.svnexe.command.info.SvnInfoCommandTest
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Failures:
      [ERROR]   SvnExeUpdateCommandTckTest>UpdateCommandTckTest.testUpdateCommand:168->ScmTestCase.assertPath:168 expected:<[/]src/main/java/org/Fo...> but was:<[]src/main/java/org/Fo...>
      [INFO]
      [ERROR] Tests run: 92, Failures: 1, Errors: 0, Skipped: 1
      [INFO]
      [INFO]
      [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.431 s <<< FAILURE! - in org.apache.maven.scm.provider.git.gitexe.command.update.GitExeUpdateCommandTckTest
      [ERROR] testUpdateCommand(org.apache.maven.scm.provider.git.gitexe.command.update.GitExeUpdateCommandTckTest)  Time elapsed: 5.43 s  <<< FAILURE!
      junit.framework.ComparisonFailure: expected:<[/]src/main/java/org/Fo...> but was:<[]src/main/java/org/Fo...>
      

      I wonder why it worked all these years or it has not been properly tested. Will provide a PR.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: