All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Seiler <hws@denx.de>
To: Simon Glass <sjg@chromium.org>
Cc: tbot List <tbot@lists.denx.de>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: Question on running uboot_testpy with tbot
Date: Tue, 01 Feb 2022 10:35:04 +0100	[thread overview]
Message-ID: <fefd50582f3e557c0e9cfc7cf90bafeae6df63bc.camel@denx.de> (raw)
In-Reply-To: <CAPnjgZ2NmVe72sJs_XF8nfQU9uRB2v859AF6_DG-C1OH_f1RXQ@mail.gmail.com>

Hi Simon,

On Thu, 2022-01-27 at 09:05 -0700, Simon Glass wrote:
> Hi Harald,
> 

[...]

> 
> Thanks for all the info. I tried master and it mostly works, although
> Iget the same error:
> 

[...]

> │     File "/home/sglass/.local/lib/python3.8/site-packages/tbot-0.9.4-py3.8.egg/tbot/tc/uboot/testpy.py",
> line 332, in testpy
> │       os.write(chan_console.fileno(), data)
> │   OSError: [Errno 9] Bad file descriptor
> ├─────────────────────────────────────────
> └─FAILURE (43.835s)
> 
> That happens after the tests finish, and what seems to be an exact 30
> second delay from 'Exiting poweroff' to 'Fail'. I am not really any
> the wiser about what is happening there. The config is:

Did you try changing the channel as I mentioned?  The channel is
probably actually selected in the lab config where the connection to the
machine labelled "sglass" is made.  If that's still a ParamikoConnector,
please try switching to the SSHConnector as a test (and the SSHConnector
is generally preferred these days...).

> # Generated by labman from dut rpi3
> 

[...]

> 
> Also I saw a failure for self tests:
> 

[...]

> │   │   │   File
> "/home/sglass/.local/lib/python3.8/site-packages/tbot-0.9.4-py3.8.egg/tbot/machine/linux/bash.py",
> line 204, in cmd_context
> │   │   │     retcode = int(proxy_ch.read_until_prompt())
> │   │   │ ValueError: invalid literal for int() with base 10: 'o $?\n'
> │   │   │
> │   │   └─Fail. (1.050s)
> │   └─Fail. (1.091s)
> ├─Exception:
> 

Hmm, that's the old selftests...  Can you try running the new selftests
in the tbot repository:

	cd /path/to/tbot-sources
	python3 -m pytest selftest/

> 
> Finally, I have about 10 local patches which I'd like to send...

Sure, please go ahead!  Either on the tbot list or on GitHub, whatever
you prefer.

Regards,
-- 
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@denx.de

      reply	other threads:[~2022-02-01  9:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 19:34 Question on running uboot_testpy with tbot Simon Glass
2021-10-30 19:47 ` Simon Glass
2021-12-24 12:47   ` Simon Glass
2022-01-27 14:53 ` Harald Seiler
2022-01-27 16:05   ` Simon Glass
2022-02-01  9:35     ` Harald Seiler [this message]

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=fefd50582f3e557c0e9cfc7cf90bafeae6df63bc.camel@denx.de \
    --to=hws@denx.de \
    --cc=sjg@chromium.org \
    --cc=tbot@lists.denx.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.