[tbot] [Discussion] Calling tbot from within the source directory

Harald Seiler hws at denx.de
Wed Nov 28 16:40:09 UTC 2018


Hi Claudius,

On Wed, 2018-11-28 at 15:40 +0100, Harald Seiler wrote:
> Hello Claudius,
> 
> On Wed, 2018-11-28 at 15:22 +0100, Claudius Heine wrote:
> > Hi,
> 
> [...]
> > 
> > That is a bit tiresome. A `-C` parameter like git(1) has, would solve
> > it, but I think accessing the source code via the cwd in the testcases
> > as a fallback would be nice.
> > 
> > I might just be my different understanding of things. I like to be in
> > the directory of the stuff that should be tested, not where the
> > testcases are located. It also makes sense for me if multiple source
> > directories need to be "tested" on the same hw.
> > 
> > What do you think about this?
> 
> Hmm, I never thought about running tbot from outside the "tbot-config"
> directory.  If you feel like this is needed for your workflow to be
> ergonomic, adding a -C parameter is definitely a good idea.  In terms
> of implementation, I'd suggest simply changing the working directory
> very early on in main if the -C parameter is present.

I pushed a commit[1] implementing -C onto the development branch.  Please
try it out and tell me if it works as you need it to.  (Completions
should work as well! :)

[1]: https://github.com/Rahix/tbot/commit/a2afa7c641f87c9cf4de6616a6136ca16a4650d3
-- 
Harald

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-62  Fax: +49-8142-66989-80   Email: hws at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/tbot/attachments/20181128/b9d897a5/attachment.sig>


More information about the tbot mailing list