From dd7132f7d28c90c9a368b973729e1697dd4e98b3 Mon Sep 17 00:00:00 2001 From: Oleksii Lymarenko Date: Mon, 15 Oct 2018 18:38:42 +0300 Subject: [PATCH] cast rerun count to int Signed-off-by: Anton Danchenko --- test/appium/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/appium/tests/conftest.py b/test/appium/tests/conftest.py index bcc7c07751..bd7dae0ee7 100644 --- a/test/appium/tests/conftest.py +++ b/test/appium/tests/conftest.py @@ -179,7 +179,7 @@ def pytest_runtest_setup(item): def pytest_runtest_protocol(item, nextitem): - rerun_count = item.config.getoption('rerun_count') + rerun_count = int(item.config.getoption('rerun_count')) for i in range(rerun_count): reports = runtestprotocol(item, nextitem=nextitem) for report in reports: