ci: wnc-freedom: 015-platform.t: fix random libkmod output positions in lspci output

We’re seeing following random test failures:

  --- .gitlab/tests/cram/wnc-freedom/015-platform.t
  +++ .gitlab/tests/cram/wnc-freedom/015-platform.t.err
  @@ -6,7 +6,6 @@

    $ R lspci -v -d 17cb:0308
     0000:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308
  -  lspci: Unable to load libkmod resources: error -2
     \tSubsystem: Qualcomm Technologies, Inc Device 5201 (esc)
     \tFlags: bus master, fast devsel, latency 0, IRQ 34 (esc)
     \tMemory at 28300000 (64-bit, non-prefetchable) [size=4K] (esc)
  @@ -24,6 +23,7 @@
     \tCapabilities: [240] Data Link Feature <?> (esc)
     \tKernel driver in use: mhi-pci-generic (esc)

  +  lspci: Unable to load libkmod resources: error -2

Likely happening due to stderr/stdout buffering, so lets fix it by
silecing this stderr output.

Fixes: PCF-2049
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/11268790630#L167
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
Petr Štetiar 2025-09-09 11:07:44 +00:00
parent dc306ec71e
commit a7bdab3907
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -4,9 +4,8 @@ Create R alias:
Check that Quectel RM520N-GL is available on PCI bus and uses correct mhi-pci-generic kernel driver:
$ R "lspci -v -d 17cb:0308" | grep -v Flags:
$ R "lspci -v -d 17cb:0308" 2>/dev/null | grep -v Flags:
0000:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308
lspci: Unable to load libkmod resources: error -2
\tSubsystem: Qualcomm Technologies, Inc Device 5201 (esc)
\tMemory at 28300000 (64-bit, non-prefetchable) [size=4K] (esc)
\tMemory at 28301000 (64-bit, non-prefetchable) [size=4K] (esc)