Re: [PATCH v1] rtla: Set distinctive exit value for failed tests
From: Costa Shulyupin
Date: Thu Apr 17 2025 - 04:48:25 EST
On Mon, 31 Mar 2025 at 09:30, Tomas Glozar <tglozar@xxxxxxxxxx> wrote:
> Also, users might be already relying on rtla exiting with 0 on
> threshold violation. What do you think about adding a new command line
> argument, `--fail-on-threshold`, that would allow the user (including
> the test suite) to trigger the new behavior?
Although it is technically possible to rely on a failed value zero, I
suppose it is very unexpected. I expect current users only grep the
output of rtla.
I think adding a new command line argument is overcomplicated. Adding
a new command-line argument for this seems unnecessarily complex, and
I'm not aware of any Linux/POSIX tools that offer such an option.
Costa