Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10930

Robustify tests/repository.py

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: daf_persistence
    • Labels:
      None
    • Templates:
    • Team:
      External

      Description

      The TestParentRepository unit test can sometimes fail:

      price@master:/data3a/work/price/hscPipe5/lsstsw/build/daf_persistence/tests[(detached from 5.0-hsc)] $ python repository.py 
      .............E....
      ======================================================================
      ERROR: test (__main__.TestParentRepository)
      Tests 1. That an sqlite registry in a parent repo is used as the
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "repository.py", line 790, in tearDown
          shutil.rmtree(self.testDir)
        File "/data3a/work/price/hscPipe5/lsstsw/miniconda/lib/python2.7/shutil.py", line 247, in rmtree
          rmtree(fullname, ignore_errors, onerror)
        File "/data3a/work/price/hscPipe5/lsstsw/miniconda/lib/python2.7/shutil.py", line 256, in rmtree
          onerror(os.rmdir, path, sys.exc_info())
        File "/data3a/work/price/hscPipe5/lsstsw/miniconda/lib/python2.7/shutil.py", line 254, in rmtree
          os.rmdir(path)
      OSError: [Errno 39] Directory not empty: '/data3a/work/price/hscPipe5/lsstsw/build/daf_persistence/tests/TestParentRepository/repoA'
       
      ----------------------------------------------------------------------
      Ran 18 tests in 0.695s
       
      FAILED (errors=1)
      

      I believe this is due to NFS dot-files hanging around, and doesn't reflect any real problem with the butler code.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                price Paul Price
                Reporter:
                price Paul Price
                Reviewers:
                Nate Pease
                Watchers:
                Nate Pease, Paul Price
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel