Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] support/testing: add python-django test
Date: Thu, 5 Dec 2019 23:15:21 +0100	[thread overview]
Message-ID: <20191205231521.07355101@windsurf> (raw)
In-Reply-To: <20191204200629.686191-2-aduskett@gmail.com>

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

  reply	other threads:[~2019-12-05 22:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-04 20:06 [Buildroot] [PATCH 1/2] package/python-django: bump to version 3.0 aduskett at gmail.com
2019-12-04 20:06 ` [Buildroot] [PATCH 2/2] support/testing: add python-django test aduskett at gmail.com
2019-12-05 22:15   ` Thomas Petazzoni [this message]
2019-12-05 23:35   ` Arnout Vandecappelle
2019-12-05 22:14 ` [Buildroot] [PATCH 1/2] package/python-django: bump to version 3.0 Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191205231521.07355101@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox