[LTP] [PATCH] cpio_tests.sh: Fix failure with BusyBox cpio

Petr Vorel pvorel@suse.cz
Tue Jan 5 12:12:05 CET 2021


Hi Radoslav,

...
> > +
> > +if cpio 2>&1 | grep -q '\-o\sCreate (requires -H newc)'; then
Thanks for your fix, merged with these changes:

* grep for BusyBox because some older versions does not contain the
hint, but actually require it.

* move things to setup function due my following commit, which cannot be
outside API functions (setup/test function):
And check for -o (which is on BusyBox optional).

Kind regards,
Petr


More information about the ltp mailing list