[LTP] [PATCH v2 2/3] tst_test: Print environment variables on -h

Petr Vorel pvorel@suse.cz
Tue Dec 14 17:57:55 CET 2021


> Hi Tim,

> > > +	fprintf(stderr, "LTP_TIMEOUT_MUL      Multiply timeout (must be number >= 1)\n");

> > I think this should this be: "Timeout multiplier (must be a number >=1, should be an integer)

> Also makes sense, thanks!
Although it does not have to be integer.
=> "Timeout multiplier (must be a number >=1"

For C API it's used any value:
./open01
tst_test.c:1409: TINFO: Timeout per run is 0h 05m 00s

LTP_TIMEOUT_MUL=1.15 ./open01
tst_test.c:1409: TINFO: Timeout per run is 0h 05m 45s

For shell API:
./zram02.sh
zram02 1 TINFO: timeout per run is 0h 5m 0s
zram02 1 TINFO: timeout per run is 0h 7m 30s

LTP_TIMEOUT_MUL=1.15 ./zram02.sh
zram02 1 TINFO: ceiling LTP_TIMEOUT_MUL to 2
zram02 1 TINFO: timeout per run is 0h 10m 0s
zram02 1 TINFO: timeout per run is 0h 15m 0s

Doc [1] explain it: Variable is also used in shell tests, but ceiled to int.

Kind regards,
Petr

[1] https://github.com/linux-test-project/ltp/wiki/User-Guidelines

> Kind regards,
> Petr


More information about the ltp mailing list