[LTP] [RFC PATCH 2/5] lib: Allow test to have positional args

Petr Vorel pvorel@suse.cz
Fri Feb 28 18:43:25 CET 2025


Hi,

> Similar to $TST_POS_ARGS in shell API. This will be used in
> testcases/lib/tst_run_shell.c.

OK this does not work for ash (busybox sh on Alpine):
https://github.com/pevik/ltp/actions/runs/13593238811/job/38004158999

*** Testing LTP test -h option ***
*** Running 'shell_loader.sh -h' (exp: TPASS) ***
tst_test.c:758: TBROK: Unexpected argument(s) 'shell_loader.sh' (1 + 1 < 3)

*** Testing LTP test -i option ***
tst_test.c:758: TBROK: Unexpected argument(s) 'shell_loader.sh' (1 + 1 < 4)

Kind regards,
Petr


More information about the ltp mailing list