Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: netconsole: ensure required log level is set on netcons_basic

This commit ensures that the required log level is set at the start of
the test iteration.

Part of the cleanup performed at the end of each test iteration resets
the log level (do_cleanup in lib_netcons.sh) to the values defined at the
time test script started. This may cause further test iterations to fail
if the default values are not sufficient.

Signed-off-by: Andre Carvalho <asantostc@gmail.com>
Reviewed-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20251121-netcons-basic-loglevel-v1-1-577f8586159c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Andre Carvalho and committed by
Jakub Kicinski
00f3b325 d350d283

+3 -2
+3 -2
tools/testing/selftests/drivers/net/netcons_basic.sh
··· 28 28 29 29 # Check for basic system dependency and exit if not found 30 30 check_for_dependencies 31 - # Set current loglevel to KERN_INFO(6), and default to KERN_NOTICE(5) 32 - echo "6 5" > /proc/sys/kernel/printk 33 31 # Remove the namespace, interfaces and netconsole target on exit 34 32 trap cleanup EXIT 35 33 ··· 37 39 for IP_VERSION in "ipv6" "ipv4" 38 40 do 39 41 echo "Running with target mode: ${FORMAT} (${IP_VERSION})" 42 + # Set current loglevel to KERN_INFO(6), and default to 43 + # KERN_NOTICE(5) 44 + echo "6 5" > /proc/sys/kernel/printk 40 45 # Create one namespace and two interfaces 41 46 set_network "${IP_VERSION}" 42 47 # Create a dynamic target for netconsole