]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: defer: Allow spaces in arguments of deferred commands
authorPetr Machata <petrm@nvidia.com>
Thu, 4 Sep 2025 17:07:24 +0000 (19:07 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 12 Sep 2025 02:02:50 +0000 (19:02 -0700)
commitd89d3b29ce1a081507bf7b0a18405dc6b8e69a21
tree622946d2cdebcf96168d40d15188a3c15c19abb2
parent21446c06b441b9c993870efae71aef4e9aa72ec7
selftests: defer: Allow spaces in arguments of deferred commands

Currently the way deferred commands are stored and invoked causes any
whitespace to act as an argument separator when the command is executed.
To make it possible to use spaces in deferred commands, store the commands
quoted, and then eval the string prior to execution.

Fixes: a6e263f125cd ("selftests: net: lib: Introduce deferred commands")
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/6c2523139a6f99103889c9c9fedcdc66a75441f4.1757004393.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/lib/sh/defer.sh