diff mbox series

[v2,6/6] automation: include tail of serial log in the gitlab outout

Message ID 8e1799a0e50b5a4b693f92ba26b6fef6154aeb79.1682468126.git-series.marmarek@invisiblethingslab.com (mailing list archive)
State New, archived
Headers show
Series automation: add PCI passthrough tests on x86 | expand

Commit Message

Marek Marczykowski-Górecki April 26, 2023, 12:16 a.m. UTC
Make it a bit easier to see what has failed.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
Changes in v2:
 - print it also in case of a timeout
---
 automation/scripts/qubes-x86-64.sh | 3 +++
 1 file changed, 3 insertions(+)

Comments

Stefano Stabellini April 26, 2023, 1:22 a.m. UTC | #1
On Wed, 26 Apr 2023, Marek Marczykowski-Górecki wrote:
> Make it a bit easier to see what has failed.
> 
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>

I am not too happy about this, I would rather make smoke.serial easier
to access, but if you still want this I wont block it.

Acked-by: Stefano Stabellini <sstabellini@kernel.org>

> ---
> Changes in v2:
>  - print it also in case of a timeout
> ---
>  automation/scripts/qubes-x86-64.sh | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-x86-64.sh
> index a01c571860ee..056faf9e6de8 100755
> --- a/automation/scripts/qubes-x86-64.sh
> +++ b/automation/scripts/qubes-x86-64.sh
> @@ -225,6 +225,9 @@ until grep "^Welcome to Alpine Linux" smoke.serial || [ $timeout -le 0 ]; do
>      sleep 1;
>      : $((--timeout))
>  done
> +
> +tail -n 100 smoke.serial
> +
>  if [ $timeout -le 0 ]; then
>      echo "ERROR: test timeout, aborting"
>      exit 1
> -- 
> git-series 0.9.1
>
diff mbox series

Patch

diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-x86-64.sh
index a01c571860ee..056faf9e6de8 100755
--- a/automation/scripts/qubes-x86-64.sh
+++ b/automation/scripts/qubes-x86-64.sh
@@ -225,6 +225,9 @@  until grep "^Welcome to Alpine Linux" smoke.serial || [ $timeout -le 0 ]; do
     sleep 1;
     : $((--timeout))
 done
+
+tail -n 100 smoke.serial
+
 if [ $timeout -le 0 ]; then
     echo "ERROR: test timeout, aborting"
     exit 1