Commit 4e398426 authored by Yongqin Liu's avatar Yongqin Liu
Browse files

anycast_test.py: change to use thread.join to wait CloseFileDescriptorThread finished



The original implementation closes fd in a separate thread,
and the use time.sleep(0.1) to wait it finished, but there is the case that
on platforms like hikey the thread is not finished even after the slept 0.1s,

to make this test works for more platforms, we change to use thread.join(0.5) here
to wait up to 0.5 seconds.

And use thread.isActive to check if there is the hang problem.

Test: run vts-kernel -m VtsKernelNetTest with 4.9 and 4.14 kernel

There will be 1 or more failed in 5 iterations,
after this change all will pass in 10 iterations.

Change-Id: I24341667c9a889d79d38a9eb1d88d05325d7ffff
Signed-off-by: default avatarYongqin Liu <yongqin.liu@linaro.org>
parent d6d6b2b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment