From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 3086173212 for ; Fri, 19 Aug 2016 09:31:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u7J9Uc77014938; Fri, 19 Aug 2016 10:31:11 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dxMKXNoXi0gu; Fri, 19 Aug 2016 10:31:11 +0100 (BST) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u7J9V9di014961 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 19 Aug 2016 10:31:10 +0100 Message-ID: <1471599069.16712.20.camel@linuxfoundation.org> From: Richard Purdie To: Markus Lehtonen , bitbake-devel@lists.openembedded.org Date: Fri, 19 Aug 2016 10:31:09 +0100 In-Reply-To: References: <1471539354-32382-1-git-send-email-markus.lehtonen@linux.intel.com> <1471539354-32382-2-git-send-email-markus.lehtonen@linux.intel.com> <1471539833.16712.19.camel@linuxfoundation.org> X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Subject: Re: [PATCH 1/4] bitbake-selftest: utilize unittest.main better X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 09:31:16 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2016-08-19 at 08:41 +0300, Markus Lehtonen wrote: > On 18/08/16 20:03, "Richard Purdie" < > richard.purdie@linuxfoundation.org> > wrote: > > > On Thu, 2016-08-18 at 19:55 +0300, Markus Lehtonen wrote: > > > This simplifies the script, and, gives new features. It is now > > > possible > > > to run single test functions, for example. This is nice when > > > writing > > > new > > > test cases. > > > > > > Signed-off-by: Markus Lehtonen > > > --- > > > bin/bitbake-selftest | 30 ++++++++---------------------- > > > 1 file changed, 8 insertions(+), 22 deletions(-) > > > > > > diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest > > > index 1e6f35e..1e615cc 100755 > > > --- a/bin/bitbake-selftest > > > +++ b/bin/bitbake-selftest > > > @@ -25,31 +25,17 @@ try: > > > except RuntimeError as exc: > > > sys.exit(str(exc)) > > > > > > -def usage(): > > > - print('usage: [BB_SKIP_NETTESTS=yes] %s [-v] [testname1 > > > [testname2]...]' % os.path.basename(sys.argv[0])) > > > > Could we at least preserve the usage message which is helpful as I > > can > > never remember BB_SKIP_NETTESTS=yes without prompting... > > I didn't find an easy way to add that to the usage string. However, > patch > #2 ("bitbake-selftest: add help text for env variable(s)") adds a > note > about BB_SKIP_NETTESTS that gets printed if you use --help. Would > this be > ok? Yes, when I sent this I was reading through the patches in order and hadn't got to 2/4, sorry. I should have read ahead! This should be ok. Cheers, Richard