[PATCH v3 2/3] tests: Check wmediumd version

Jouni Malinen j at w1.fi
Thu Mar 2 01:27:17 PST 2017


On Thu, Mar 02, 2017 at 12:48:05PM +0900, Masashi Honma wrote:
> Some wmediumd tests requires new wmediumd features. Modified SNR table,
> location-based config and log levels. The wmediumd 0.2 does not have
> these features, so skip such a tests.

> diff --git a/tests/hwsim/test_wmediumd.py b/tests/hwsim/test_wmediumd.py
> +def check_wmediumd_version():
>
> +    if stdoutdata.find('wmediumd v0.2 ') > -1:
> +        LocalVariables.is_old_wmediumd = True
> +        raise HwsimSkip('wmediumd not available')
> +    else:
> +        LocalVariables.is_old_wmediumd = False

I guess that should really state that wmediumd is not new enough instead
of not being available.

Where can one get new enough wmediumd, though? The current snapshot of
https://github.com/bcopeland/wmediumd.git advertises v0.2. As such, this
patch seems to be disabling the wmediumd_path_simple test case
unconditionally with the currently available wmediumd..

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list