abfe3c45 | 26-Mar-2019 |
Joe Lawrence <joe.lawrence@redhat.com> |
selftests/livepatch: use TEST_PROGS for test scripts
Adrian reports that 'make -C tools clean' results in removal of the livepatch selftest shell scripts.
As per the selftest lib.mk file, TEST_PROG
selftests/livepatch: use TEST_PROGS for test scripts
Adrian reports that 'make -C tools clean' results in removal of the livepatch selftest shell scripts.
As per the selftest lib.mk file, TEST_PROGS are for test shell scripts, not TEST_GEN_PROGS. Adjust the livepatch selftest Makefile accordingly.
Reported-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> Tested-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Petr Mladek <pmladek@suse.com>
show more ...
|
fbb76d57 | 08-Feb-2019 |
Joe Lawrence <joe.lawrence@redhat.com> |
livepatch/selftests: use "$@" to preserve argument list
The livepatch selftest functions.sh library uses "$*" and an intermediate variable to extract and then pass arguments from function to functio
livepatch/selftests: use "$@" to preserve argument list
The livepatch selftest functions.sh library uses "$*" and an intermediate variable to extract and then pass arguments from function to function call. The effect of this combination is that the argument list is flattened into a single argument. Sometimes this is benign, but in cases like __load_mod(), the modprobe invocation will interpret all the module parameters as a single parameter.
Drop the intermediate variable and use the "$@" special parameter as described in the bash manual.
Link: https://www.gnu.org/software/bash/manual/bash.html#Special-Parameters Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Acked-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Petr Mladek <pmladek@suse.com>
show more ...
|