only run a single (short) py_ecc test on slave3, since it is so slow the tests timeout

This commit is contained in:
Brian Warner 2007-01-05 00:42:52 -07:00
parent e1c6ee9dcf
commit 409d92e746
2 changed files with 10 additions and 2 deletions

View File

@ -100,8 +100,9 @@ class PyRSEncoder(object):
# 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
# use. It appears to take about 15 seconds to create this the first time.
# Make sure this file winds up somewhere reasonable.
# use. It appears to take about 15 seconds to create this the first time,
# 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
# 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
# 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):
assert required_shares <= total_shares
self.data_size = data_size

View File

@ -81,12 +81,16 @@ class Tester:
return d
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)
def test_encode1(self):
return self.do_test(8, 8, 16)
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)
def test_sizes(self):