Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8537

ant test command fails under lucene/tools

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 7.7, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The ant test command executed under lucene/tools folder fails because it does not have junit.classpath property. Since the module does not have any test folder we could override the -test and -check-totals targets.

      bash-3.2$ pwd
      /Users/peter.somogyi/repos/lucene-solr/lucene/tools
      bash-3.2$ ant test
      Buildfile: /Users/peter.somogyi/repos/lucene-solr/lucene/tools/build.xml
      ...
      -test:
         [junit4] <JUnit4> says ciao! Master seed: 9A2ACC9B4A3C8553
      
      BUILD FAILED
      /Users/peter.somogyi/repos/lucene-solr/lucene/common-build.xml:1567: The following error occurred while executing this line:
      /Users/peter.somogyi/repos/lucene-solr/lucene/common-build.xml:1092: Reference junit.classpath not found.
      
      Total time: 1 second
      

      I ran into this issue when uploaded a patch where I removed an import from this module. This triggered a module-level build during precommit that failed with this error.

        Attachments

        1. LUCENE-8537.patch
          1 kB
          Peter Somogyi

          Issue Links

            Activity

              People

              • Assignee:
                uschindler Uwe Schindler
                Reporter:
                psomogyi Peter Somogyi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h