]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
teuthology: pass integer as "tries" to safe_while() 1445/head
authorKefu Chai <kchai@redhat.com>
Mon, 13 Apr 2020 04:43:35 +0000 (12:43 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 13 Apr 2020 04:45:20 +0000 (12:45 +0800)
commit125d414061df7ded88df910cd62983861629c887
treeb216867883565c448c47b9f2d6cc4d9cec94a02b
parent0f93372744eceff5d1c3e8fe90d30ad39d682f39
teuthology: pass integer as "tries" to safe_while()

in Python3, `a / b` could return a float, and `safe_while()` uses
`itertools.islice()` under the hood, where `stop` should be None or an
integer. so let's use `a // b` instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/misc.py
teuthology/orchestra/run.py