]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
lock: locked_since_seconds converts locked_since
authorLoic Dachary <ldachary@redhat.com>
Fri, 27 Nov 2015 20:39:43 +0000 (21:39 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 1 Dec 2015 11:19:23 +0000 (12:19 +0100)
commit4ad59b352a23db64983a7ed5c206f3d65f61bfea
treeb08b5904f213f96d054983d270c9bf055af1cad2
parent76d1472af1b4da4afb14f3521ddaf0c9d07dd7a0
lock: locked_since_seconds converts locked_since

The node locked_since property is converted by locked_since_seconds
into the number of seconds since the present time, which is convenient
to compare with configured delays.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/lock.py
teuthology/test/test_lock.py [new file with mode: 0644]