Hi.
We are using that ltp.sh file

And very strange, that we pass ltp part, and job is stuck after echo 1 command

In normal situation 

-ltp results
+ echo 1
+ ret_val=1
+ exec
+ return 1

in our

-ltp results
+ echo 1 

And lava doesnt run any commands, just stuck until timeout

That it the question. What it could be? 

From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Sent: Wednesday, November 20, 2019 2:01 PM
To: Ilya Fedusiv <ilya.f@l4b-software.com>
Cc: Remi Duraffort <remi.duraffort@linaro.org>; Andreas Schlüter <andreas.s@l4b-software.com>; lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
Subject: Re: [Lava-users] LXC connection LTP Issue
 
On Wed, 20 Nov 2019 at 11:55, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
>
> Hello,
>
> In general the whole LTP test cases are running in the background , connected to the caller script (ltp.sh) via a pipe.
> how to run it properly?

I'm not sure what you mean by that. In the test definition we use it's
ltp.sh is called in the foreground:
https://github.com/Linaro/test-definitions/blob/master/automated/linux/ltp/ltp.yaml#L51
It will print all output from LTP as it comes. Example here:
https://lkft.validation.linaro.org/scheduler/job/1017325#L1770

milosz

>
> Ilya.
> ________________________________
> From: Remi Duraffort <remi.duraffort@linaro.org>
> Sent: Tuesday, November 19, 2019 12:34 PM
> To: Ilya Fedusiv <ilya.f@l4b-software.com>
> Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>; Andreas Schlüter <andreas.s@l4b-software.com>
> Subject: Re: [Lava-users] LXC connection LTP Issue
>
> Hello,
>
> are you running a process in the background? Looks like the shell is just not returning which happen when a process is still running in the background.
>
>
> Rgds
>
> Le mar. 19 nov. 2019 à 10:43, Ilya Fedusiv <ilya.f@l4b-software.com> a écrit :
>
> Hi!
>
> Have some issues with recognition of ltp test end point.
> After receiving message of the ltp's execution finish, job is still running and waiting with line :
>
> Listened to connection for namespace 'tlxc' done
>
> until get timeout.
>
> Also sometimes job runs good without that stuck.
> All scripts to run ltp were taken from lava's repo, without any changes. Just edit skipfile
>
> Here is end of log with stuck ltp
> https://pastebin.com/1qJAbxTJ
>
> Here is end of log with successful ltp recognition.
> https://pastebin.com/BnFyq5dU
>
> Here is test part of the job.
> https://pastebin.com/m6vAWkZ9
>
> Ilya
> _______________________________________________
> Lava-users mailing list
> Lava-users@lists.lavasoftware.org
> https://lists.lavasoftware.org/mailman/listinfo/lava-users
>
>
>
> --
> Rémi Duraffort
> LAVA Architect
> Linaro
> _______________________________________________
> Lava-users mailing list
> Lava-users@lists.lavasoftware.org
> https://lists.lavasoftware.org/mailman/listinfo/lava-users