From 0cd6e75e8b0c79ebc63d3291daa9c885e13ef3b5 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 31 Aug 2016 14:51:51 -0600 Subject: [PATCH] Add an integration test to expose a logging bug This is related to: http://tracker.ceph.com/issues/17102 Signed-off-by: Zack Cerza --- .../orchestra/test/integration/test_integration.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.47.3