Re: [PATCH v1] automation: fix false success in qemu tests

2024-08-29 Thread Stefano Stabellini
On Thu, 28 Aug 2024, Lira, Victor M wrote: > Hello Michal, > > Unfortunately only removing "set +e" did not fix the issue as the test still > will always pass. > See here (line 90): > https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/7700210695 > > I think we will need to use the fifo

Re: [PATCH v1] automation: fix false success in qemu tests

2024-08-29 Thread Lira, Victor M
Hello Michal, Unfortunately only removing "set +e" did not fix the issue as the test still will always pass. See here (line 90): https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/7700210695 I think we will need to use the fifo or the Bash "pipefail" function. You may want to use "

Re: [PATCH v1] automation: fix false success in qemu tests

2024-08-28 Thread Michal Orzel
Hi Victor, On 29/08/2024 06:09, victorm.l...@amd.com wrote: > > > From: Victor Lira > > Fix flaw in qemu-*.sh tests that producess a false success. The following > lines produces success despite the "expect" script producing nonzero exit > status. > > set +e > ... > ./automation/scrip

Re: [PATCH v1] automation: fix false success in qemu tests

2024-08-28 Thread Lira, Victor M
While developing a patch to update xilinx tests to use the "expect" utility I found that with the current use of "expect" in the *qemu-* *scripts, it is possible for the test to produce a *false success *if the expect script returns nonzero due to the following lines     set +e ...     ./automa

[PATCH v1] automation: fix false success in qemu tests

2024-08-28 Thread victorm.lira
From: Victor Lira Fix flaw in qemu-*.sh tests that producess a false success. The following lines produces success despite the "expect" script producing nonzero exit status. set +e ... ./automation/scripts/qemu-key.exp | sed 's/\r\+$//' (end of file) The "set +e" is sometimes needed