From: Zack Cerza Date: Wed, 31 Aug 2016 20:51:51 +0000 (-0600) Subject: Add an integration test to expose a logging bug X-Git-Tag: 1.1.0~538^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0cd6e75e8b0c79ebc63d3291daa9c885e13ef3b5;p=teuthology.git Add an integration test to expose a logging bug This is related to: http://tracker.ceph.com/issues/17102 Signed-off-by: Zack Cerza --- diff --git a/teuthology/orchestra/test/integration/test_integration.py b/teuthology/orchestra/test/integration/test_integration.py index a9a528e89..90200a2a5 100644 --- a/teuthology/orchestra/test/integration/test_integration.py +++ b/teuthology/orchestra/test/integration/test_integration.py @@ -80,3 +80,15 @@ class TestIntegration(): rem = remote.Remote(HOST) assert rem.os.name assert rem.os.version + + def test_17102(self, caplog): + # http://tracker.ceph.com/issues/17102 + rem = remote.Remote(HOST) + interval = 3 + rem.run(args="echo before; sleep %s; echo after" % interval) + for record in caplog.records(): + if record.msg == 'before': + before_time = record.created + elif record.msg == 'after': + after_time = record.created + assert int(round(after_time - before_time)) == interval