KVM test: tests/steps.py: simplify barrier_2()

Add a few comments, group similar lines and replace some blocks with one-liners.

Note: the weird form

timeout_multiplier = float(params.get("timeout_multiplier") or 1)

allows the user to fall back to the default value by setting timeout_multiplier
to "". The more common form

timeout_multiplier = float(params.get("timeout_multiplier", 1))

will raise an exception if timeout_multiplier is "".

Signed-off-by: Michael Goldish <mgoldish@redhat.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3797 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed