]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
test_run_with_watchdog_with_reporting(): ?
authorZack Cerza <zack@redhat.com>
Tue, 26 May 2020 20:40:13 +0000 (14:40 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 27 May 2020 19:39:17 +0000 (13:39 -0600)
teuthology/test/test_worker.py

index d966d3476bb6076f62d4082c620aed5a824fc828..0e051f8dd6aceaaae849ccacc6075806dfae39d2 100644 (file)
@@ -158,25 +158,6 @@ class TestWorker(object):
             dict(status='dead')
         )
 
-    @patch("subprocess.Popen")
-    @patch("teuthology.worker.symlink_worker_log")
-    @patch("time.sleep")
-    def test_run_with_watchdog_with_reporting(self, m_sleep, m_symlink_log, m_popen):
-        config = {
-            "name": "the_name",
-            "job_id": "1",
-            "worker_log": "worker_log",
-            "archive_path": "archive/path",
-            "teuthology_branch": "jewel"
-        }
-        process = Mock()
-        process.poll.return_value = "not None"
-        m_proc = Mock()
-        m_proc.poll.return_value = "not None"
-        m_popen.return_value = m_proc
-        worker.run_with_watchdog(process, config)
-        m_symlink_log.assert_called_with(config["worker_log"], config["archive_path"])
-
     @patch("os.path.isdir")
     @patch("teuthology.worker.fetch_teuthology")
     @patch("teuthology.worker.fetch_qa_suite")