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

ant test command fails under lucene/tools

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.0
    • 7.7, 8.0
    • None
    • None
    • 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

              uschindler Uwe Schindler
              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