Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 12651200AED for ; Tue, 3 May 2016 21:05:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 110F01609F4; Tue, 3 May 2016 21:05:48 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5B2B21609A9 for ; Tue, 3 May 2016 21:05:47 +0200 (CEST) Received: (qmail 28319 invoked by uid 500); 3 May 2016 19:05:41 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 28308 invoked by uid 99); 3 May 2016 19:05:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 19:05:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 25267DFD43; Tue, 3 May 2016 19:05:41 +0000 (UTC) From: jburwell To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Marvin: Replace a timer.sleep(30) with pu... Content-Type: text/plain Message-Id: <20160503190541.25267DFD43@git1-us-west.apache.org> Date: Tue, 3 May 2016 19:05:41 +0000 (UTC) archived-at: Tue, 03 May 2016 19:05:48 -0000 Github user jburwell commented on the pull request: https://github.com/apache/cloudstack/pull/1529#issuecomment-216632803 @mike-tutkowski you may want to consider refactoring to use the [``wait_until`` function](https://github.com/apache/cloudstack/blob/12d8e53dd54d83242b3dabf2151249ab7963d5a8/tools/marvin/marvin/lib/utils.py#L527-L543) was recently added to utils.py. It provides a concise, Pythonic way of waiting for a condition. For example of its usage, see the [test_host_maintenance.py](https://github.com/apache/cloudstack/blob/12d8e53dd54d83242b3dabf2151249ab7963d5a8/test/integration/component/test_host_maintenance.py#L181) where it is used to wait until VM migration has completed before proceeding with the test. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---