Skip to content

selftests/bpf: Enlarge select() timeout for test_maps

Felix Maurer requested to merge fmaurer-rh/centos-stream-9:bz2032718 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2032718 Tested: Confirmed on x86_64 that the timeout is the cause of the failures. Compiled and ran the fixed test successfully.

commit 2d82d73da35b72b53fe0d96350a2b8d929d07e42 Author: Li Zhijian lizhijian@cn.fujitsu.com Date: Fri Aug 20 09:55:53 2021 +0800

selftests/bpf: Enlarge select() timeout for test_maps

0Day robot observed that it's easily timeout on a heavy load host.
-------------------
 not ok 3 selftests: bpf: test_maps # exit=1
-------------------
Since this test will be scheduled by 0Day to a random host that could have
only a few cpus(2-8), enlarge the timeout to avoid a false NG report.

In practice, i tried to pin it to only one cpu by 'taskset 0x01 ./test_maps',
and knew 10S is likely enough, but i still perfer to a larger value 30.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210820015556.23276-2-lizhijian@cn.fujitsu.com

Signed-off-by: Felix Maurer fmaurer@redhat.com

Edited by Felix Maurer

Merge request reports

Loading