[LTP] [PATCH v6 2/4] fw_load: rewrite test using new LTP API
Andrea Cervesato
andrea.cervesato@suse.com
Mon Jun 15 13:50:35 CEST 2026
Hi Cyril,
> If you are splitting the tst_res() by the fw->fake then do it right. We
> should drop the && !fw->fake from the fail above and use a variable
> only to get the right bit from the result:
>
> int pass = result && (1<<i);
>
> if (fw->fake)
> tst_res(pass ? TFAIL : TPASS, ...)
> else
> tst_res(pass ? TPASS : TFAIL, ...)
Much cleaner indeed, I will fix it.
>
> I assume that we dropped this because we have
> tst_requires_module_signature_disabled() later in the setup() right?
Exactly.
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list