On Fri, 20 Feb 2026 11:12:34 -0300
Marcos Paulo de Souza <[email protected]> wrote:

> When running current selftests on older distributions like SLE12-SP5 that
> contains an older bash trips over heredoc. Convert it to plain echo
> calls, which ends up with the same result.
> 
> Signed-off-by: Marcos Paulo de Souza <[email protected]>
> ---
>  tools/testing/selftests/livepatch/functions.sh | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/tools/testing/selftests/livepatch/functions.sh 
> b/tools/testing/selftests/livepatch/functions.sh
> index 8ec0cb64ad94..45ed04c6296e 100644
> --- a/tools/testing/selftests/livepatch/functions.sh
> +++ b/tools/testing/selftests/livepatch/functions.sh
> @@ -96,10 +96,8 @@ function pop_config() {
>  }
>  
>  function set_dynamic_debug() {
> -        cat <<-EOF > "$SYSFS_DEBUG_DIR/dynamic_debug/control"
> -             file kernel/livepatch/* +p
> -             func klp_try_switch_task -p
> -             EOF
> +     echo "file kernel/livepatch/* +p" > 
> "$SYSFS_DEBUG_DIR/dynamic_debug/control"
> +     echo "func klp_try_switch_task -p" > 
> "$SYSFS_DEBUG_DIR/dynamic_debug/control"

Use printf so you can write both lines in one command.

        David

>  }
>  
>  function set_ftrace_enabled() {
> 


Reply via email to