[tahoe-lafs-trac-stream] [tahoe-lafs] #2048: allmydata.test.test_cli.Cp.test_copy_using_filecap is really slow due to a test bug
tahoe-lafs
trac at tahoe-lafs.org
Wed Aug 7 16:18:08 UTC 2013
#2048: allmydata.test.test_cli.Cp.test_copy_using_filecap is really slow due to a
test bug
------------------------+------------------------------
Reporter: daira | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.11.0
Component: code | Version: 1.10.0
Resolution: | Keywords: test performance
Launchpad Bug: |
------------------------+------------------------------
Description changed by daira:
Old description:
> The fix for #1805 ([changeset:595d611c9b4b29c8/master]) 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.
New description:
The fix for #1805 ([changeset: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.
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2048#comment:1>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list