[Buildroot] [PATCH 2/2] support/testing: add python-django test
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Dec 5 22:15:21 UTC 2019
On Wed, 4 Dec 2019 12:06:29 -0800
aduskett at gmail.com wrote:
> + def run_sample_scripts(self):
> + cmd = "cd /opt && /usr/bin/django-admin startproject testsite"
> + _, exit_code = self.emulator.run(cmd, timeout=30)
> + self.assertEqual(exit_code, 0)
These last two lines can be simplified to:
self.assertRunOk(cmd, timeout=30)
so I used that in the 3 places where it was possible, and I've applied
to master.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list