Update Buildroot 2020.02.2 (#682)

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
Pascal Vizeli
2020-05-20 17:32:11 +02:00
committed by GitHub
parent ce3c80641b
commit 035e3884d8
264 changed files with 4460 additions and 1085 deletions

View File

@@ -6,18 +6,20 @@ class TestPythonDjango(TestPythonPackageBase):
sample_scripts = ["tests/package/sample_python_django.py"]
def run_sample_scripts(self):
timeout = 35 * self.emulator.timeout_multiplier
cmd = "cd /opt && /usr/bin/django-admin startproject testsite"
self.assertRunOk(cmd, timeout=30)
self.assertRunOk(cmd, timeout=timeout)
cmd = "cd /opt/testsite && " + self.interpreter + " ./manage.py migrate"
output, exit_code = self.emulator.run(cmd, timeout=30)
output, exit_code = self.emulator.run(cmd, timeout=timeout)
self.assertIn("Operations to perform:", output[0])
self.assertEqual(exit_code, 0)
cmd = "cd /opt/testsite && " + self.interpreter + " ./manage.py runserver 0.0.0.0:1234 & "
# give some time to setup the server
cmd += "sleep 30"
self.assertRunOk(cmd, timeout=35)
cmd += "sleep {}".format(str(30 * self.emulator.timeout_multiplier))
self.assertRunOk(cmd, timeout=timeout)
cmd = "netstat -ltn 2>/dev/null | grep 0.0.0.0:1234"
self.assertRunOk(cmd)