mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Tahoe-LAFS: Hopefully fix subtle test suite bug.
svn path=/nixpkgs/trunk/; revision=19801
This commit is contained in:
parent
79df27d45b
commit
b46d05da85
@ -11,7 +11,9 @@ buildPythonPackage (rec {
|
||||
sha256 = "10j6s4wqqxb0x6plwvfnabxxl0k8jy1g1dfsrhpfgdi42f25dain";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
patches = [ ./fix-test-copy-using-filecap.patch ];
|
||||
|
||||
postPatch = ''
|
||||
echo "forcing the use of \`setuptools' 0.6c9 rather than an unreleased version"
|
||||
for i in *setup.py
|
||||
do
|
||||
|
@ -0,0 +1,23 @@
|
||||
From http://allmydata.org/trac/tahoe/ticket/936 .
|
||||
|
||||
Wed Feb 3 23:13:37 GMT Standard Time 2010 david-sarah@jacaranda.org
|
||||
* Fix race condition in allmydata.test.test_cli.Cp.test_copy_using_filecap
|
||||
diff -rN -u old-tahoe/src/allmydata/test/test_cli.py new-tahoe/src/allmydata/test/test_cli.py
|
||||
--- old-tahoe/src/allmydata/test/test_cli.py 2010-02-03 23:20:06.803000000 +0000
|
||||
+++ new-tahoe/src/allmydata/test/test_cli.py 2010-02-03 23:20:10.483000000 +0000
|
||||
@@ -1007,13 +1007,13 @@
|
||||
self.set_up_grid()
|
||||
outdir = os.path.join(self.basedir, "outdir")
|
||||
os.mkdir(outdir)
|
||||
- self.do_cli("create-alias", "tahoe")
|
||||
fn1 = os.path.join(self.basedir, "Metallica")
|
||||
fn2 = os.path.join(outdir, "Not Metallica")
|
||||
fn3 = os.path.join(outdir, "test2")
|
||||
DATA1 = "puppies" * 10000
|
||||
open(fn1, "wb").write(DATA1)
|
||||
- d = self.do_cli("put", fn1)
|
||||
+ d = self.do_cli("create-alias", "tahoe")
|
||||
+ d.addCallback(lambda res: self.do_cli("put", fn1))
|
||||
def _put_file((rc, out, err)):
|
||||
self.failUnlessEqual(rc, 0)
|
||||
# keep track of the filecap
|
Loading…
Reference in New Issue
Block a user