[LTP] [PATCH 5/8] shell: Add tst_clear_device
Petr Vorel
pvorel@suse.cz
Wed Jun 1 12:34:00 CEST 2022
Hi Cyril,
> Hi!
> Can't we just add clear command to the tst_device.c instead?
Not sure what you mean, can you be more specific?
I wasn't clear in git commit message that shell API also needs call
tst_clear_device(), but we use mkfs.* binary directly, instead of tst_mkfs_()
via SAFE_MKFS(), but this is obvious to you.
Alternatively we could create binary testcases/lib/tst_mkfs.c which would
run SAFE_MKFS(). We already have all code in C and both C and shell API would be
even more consistent.
Kind regards,
Petr
More information about the ltp
mailing list