[LTP] [PATCH v1] tst_test.sh: Add support for localhost ssh key setup
Martin Doucha
mdoucha@suse.cz
Tue Sep 24 14:08:32 CEST 2024
On 24. 09. 24 12:15, Wei Gao wrote:
> On Wed, Sep 18, 2024 at 01:46:30PM +0200, Martin Doucha wrote:
>> The test runner can also create an alias for the lftp command so that the
>> test can call it using the old name.
> Create an alias for lftp not enough since current code use parameter "-nv" which
> not supported by lftp so following error will popup:
>
> lftp: invalid option -- 'n'
> Try `lftp --help' for more information
In that case we can either leave the test as is or detect the available
ftp client in setup():
if tst_cmd_available ftp; then
FTP_CMD="ftp -nv"
elif tst_cmd_available lftp; then
FTP_CMD="lftp -v --norc"
else
tst_brkm TCONF "No FTP client found"
fi
--
Martin Doucha mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list