mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-06 01:21:43 +00:00
only run a single (short) py_ecc test on slave3, since it is so slow the tests timeout
This commit is contained in:
parent
e1c6ee9dcf
commit
409d92e746
@ -100,8 +100,9 @@ class PyRSEncoder(object):
|
|||||||
|
|
||||||
# TODO: this will write a 733kB file called 'ffield.lut.8' in the current
|
# TODO: this will write a 733kB file called 'ffield.lut.8' in the current
|
||||||
# directory the first time it is run, to cache the lookup table for later
|
# directory the first time it is run, to cache the lookup table for later
|
||||||
# use. It appears to take about 15 seconds to create this the first time.
|
# use. It appears to take about 15 seconds to create this the first time,
|
||||||
# Make sure this file winds up somewhere reasonable.
|
# and about 0.5s to load it in each time afterwards. Make sure this file
|
||||||
|
# winds up somewhere reasonable.
|
||||||
|
|
||||||
# TODO: the encoder/decoder RSCode object depends upon the number of
|
# TODO: the encoder/decoder RSCode object depends upon the number of
|
||||||
# required/total shares, but not upon the data. We could probably save a
|
# required/total shares, but not upon the data. We could probably save a
|
||||||
@ -109,6 +110,9 @@ class PyRSEncoder(object):
|
|||||||
# any time we use the same required/total share numbers (which will
|
# any time we use the same required/total share numbers (which will
|
||||||
# probably be always).
|
# probably be always).
|
||||||
|
|
||||||
|
# on my workstation (fluxx, a 3.5GHz Athlon), this encodes data at a rate
|
||||||
|
# of 6.7kBps. Zooko's mom's 1.8GHz G5 got 2.2kBps .
|
||||||
|
|
||||||
def set_params(self, data_size, required_shares, total_shares):
|
def set_params(self, data_size, required_shares, total_shares):
|
||||||
assert required_shares <= total_shares
|
assert required_shares <= total_shares
|
||||||
self.data_size = data_size
|
self.data_size = data_size
|
||||||
|
@ -81,12 +81,16 @@ class Tester:
|
|||||||
return d
|
return d
|
||||||
|
|
||||||
def test_encode(self):
|
def test_encode(self):
|
||||||
|
if os.uname()[1] == "slave3" and self.enc_class == PyRSEncoder:
|
||||||
|
raise unittest.SkipTest("slave3 is really slow")
|
||||||
return self.do_test(1000, 25, 100)
|
return self.do_test(1000, 25, 100)
|
||||||
|
|
||||||
def test_encode1(self):
|
def test_encode1(self):
|
||||||
return self.do_test(8, 8, 16)
|
return self.do_test(8, 8, 16)
|
||||||
|
|
||||||
def test_encode2(self):
|
def test_encode2(self):
|
||||||
|
if os.uname()[1] == "slave3" and self.enc_class == PyRSEncoder:
|
||||||
|
raise unittest.SkipTest("slave3 is really slow")
|
||||||
return self.do_test(123, 25, 100)
|
return self.do_test(123, 25, 100)
|
||||||
|
|
||||||
def test_sizes(self):
|
def test_sizes(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user