controllers: reduce number of warnings caused by grep
PATCH 1/1 controllers: reduce number of warnings caused by grep
From: Andrea Cervesato <[email protected]>
Remove stray \ before _ and : which are causing lots of warnings in the console. There's no need to use backslash when using regexp mode in grep.
Signed-off-by Andrea Cervesato <[email protected]>
--- .../cpuset/cpuset_memory_spread_test/cpuset_memory_spread_testset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/cpuset_memory_spread_testset.sh +1 -1
@@ -81,7 +81,7 @@ set_memsinfo_val() get_memsinfo_val() { local value= - value=`echo "$memsinfo" | grep -e "^\_$1\: "` + value=`echo "$memsinfo" | grep -e "^_$1: "` value=`echo "$value" | sed -r "s/^.*\: (.*)$/\1/"` echo "$value" }
---
base-commit: 660cfd5a8177b819255f3a0f96f82d3c9bffbe4e
change-id: 20260210-fix_cpuset_memory_spread_warnings-bf67bbf42f5e
Best regards,
Signature · 5 lines
Andrea Cervesato <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Reviewed-by Cyril Hrubis <[email protected]>
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Merged.
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp