Commit 4f3279fb authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

test_standalone: fix TestSlapOSStandaloneLongSoftwareError

2^16 is too big and in many machines, you will have "Argument list too
long" error. Actually 2^16-1 is the limit and with the "echo "
characters in the beginning, we could do max "2^16 - 6". Using 2^15 is
already enough.
parent 3b254e95
......@@ -654,7 +654,7 @@ class TestSlapOSStandaloneInstance(SlapOSStandaloneTestCase):
class TestSlapOSStandaloneLongSoftwareError(SlapOSStandaloneTestCase):
def test(self):
with tempfile.NamedTemporaryFile(suffix="-%s.cfg" % self.id()) as f:
very_long_string = "a" * (2 << 16)
very_long_string = "a" * (2 << 15)
software_url = f.name
f.write(
textwrap.dedent(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment