set timeouts method to thread to avoid problems in parallel run

This commit is contained in:
Ivan Shcheklein
2019-03-17 20:11:01 -07:00
parent f085e01717
commit 08036b445b
+3 -2
View File
@@ -17,7 +17,8 @@ if len(sys.argv) == 1:
else: else:
params = " ".join(sys.argv[1:]) params = " ".join(sys.argv[1:])
cmd = "py.test -v -n=4 --timeout=600 --cov=dvc " "{params} ".format( cmd = (
params=params "py.test -v -n=4 --timeout=600 --timeout_method=thread --cov=dvc "
"{params} ".format(params=params)
) )
check_call(cmd, shell=True) check_call(cmd, shell=True)