selftests: forwarding: lib: quote the sysctl values
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 8 Feb 2023 03:21:10 +0000 (11:21 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Feb 2023 10:05:38 +0000 (11:05 +0100)
commit3a082086aa200852545cf15159213582c0c80eba
tree7785aa638533ff3fd567dc55d48965128f9cbf29
parent2fcde9fe258ec8b88d41def38e43ca4da32c0a9a
selftests: forwarding: lib: quote the sysctl values

When set/restore sysctl value, we should quote the value as some keys
may have multi values, e.g. net.ipv4.ping_group_range

Fixes: f5ae57784ba8 ("selftests: forwarding: lib: Add sysctl_set(), sysctl_restore()")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/20230208032110.879205-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/forwarding/lib.sh