#2048 closed defect

allmydata.test.test_cli.Cp.test_copy_using_filecap is really slow due to a test bug — at Version 1

Reported by: daira Owned by:
Priority: normal Milestone: 1.10.1
Component: code Version: 1.10.0
Keywords: test performance Cc:
Launchpad Bug:

Description (last modified by daira)

The fix for #1805 (595d611c9b4b29c8/trunk) added the following code in allmydata.test.test_cli.Cp.test_copy_using_filecap:

        #  cp --verbose filename3 dircap:test_file
        d.addCallback(lambda ign:
                      self.do_cli("cp", "--verbose", '--recursive', self.basedir, self.dircap))
        def _test_for_wrong_indices((rc, out, err)):
            self.failUnless('examining 1 of 1\n' in err)
        d.addCallback(_test_for_wrong_indices)

The tahoe cp command is copying the whole basedir of the test recursively into the self.dircap directory, which is definitely not what we want, and is really slow.

Change History (1)

comment:1 Changed at 2013-08-07T16:18:08Z by daira

  • Description modified (diff)
Note: See TracTickets for help on using tickets.