From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E5F0BA0C4C; Mon, 9 Aug 2021 13:24:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF9874003D; Mon, 9 Aug 2021 13:24:08 +0200 (CEST) Received: from mail-oi1-f228.google.com (mail-oi1-f228.google.com [209.85.167.228]) by mails.dpdk.org (Postfix) with ESMTP id 1D91A4003C for ; Mon, 9 Aug 2021 13:24:06 +0200 (CEST) Received: by mail-oi1-f228.google.com with SMTP id h11so7761373oie.0 for ; Mon, 09 Aug 2021 04:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RHPQueSVEZgJ+RhWvCNE8wh1qmtkboPxW6k895Gheg0=; b=BxB4R+rjxuK6fRLq2lq4Cez1dX+dP1WkrwQB5tdUYX4iD3eSGUlCXY+kBURz2sNx7l NInGFsn5yWz6VV+Jinr/sTrcfy3NO3kbDnfEyw4/gNaqR4WQLtglqnLvcsQhsicchLg3 3jTJRpZqETUMzSIx/ZBPWbctVFd+w6gaPaZLE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RHPQueSVEZgJ+RhWvCNE8wh1qmtkboPxW6k895Gheg0=; b=hpx+WiCTU2lOO+hT4RvPAi334J09iUDAA6EI+zn+gtJUVPSRrMU7zOo6vU/xyPvZ/F LIfQQqtAapEaE8aBj4rODNzc4edUSiPULMU4FEE3NsCdgNsTrL4UiG5IcLlAy2q8aRAZ GbJ5/gzW15OwiMkREqJPYOCQ2wKLtMFCu9VdfMP/UCONxIGanXCB7OUofBgWilhb78h0 jNWE9jFJy9xhWJLchClbHe727ZPwp+17Y+xgIVWKC9Dn7Wp6Py5lvyA61L78hfRUSejO UsPF0YQZVtRryTjz4d+zx/sHrx19HuMAV2M0Ndzga+eJNT+Puig/IXD3LDeMmL4vSzkF Q4WA== X-Gm-Message-State: AOAM531A7CqxyoNDRBhssXkF8ojqaJXTvePC+DcFr1PZ74iiw32LbYFo +T+O82sgkWtttroHGeASw2kwlyoZPKITVOQ5VLfol6uBSToGhf+BhXg4NBvMfDDBxHhGzrTnryF UR99+jwo0eeuwTReo52KNvsCZ7O651wlR6vNn6wB6nUgGq7EJbS2tq7LQqK201vyK7DoKyV16Ed 4AgXMbqNaj2XuMyg== X-Google-Smtp-Source: ABdhPJxTXRpGT7xFhCoyrLJPiZmYbilZvyGAIjJSNtpVlRzZaxHZ0h9obOS7n+pA4BzCOkg4NHspTxttO4ml X-Received: by 2002:a05:6808:3c7:: with SMTP id o7mr23928871oie.115.1628508246262; Mon, 09 Aug 2021 04:24:06 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id l17sm3696536otu.9.2021.08.09.04.24.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Aug 2021 04:24:06 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1220:6f7f:5992:405a:bfd7]) by postal.iol.unh.edu (Postfix) with ESMTP id A64C5605248B; Mon, 9 Aug 2021 07:24:05 -0400 (EDT) From: ohilyard@iol.unh.edu To: dts@dpdk.org Cc: lijuan.tu@intel.com, Owen Hilyard Date: Mon, 9 Aug 2021 07:24:02 -0400 Message-Id: <20210809112404.7199-1-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH 1/3] framework/test_result: Fix circular import X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: Owen Hilyard This circular import is normally fine because the debugger module is initialized before test_case is imported, but since that is not necessarily the case with the dependency script, the circular import needed to be removed. Signed-off-by: Owen Hilyard --- framework/test_case.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/test_case.py b/framework/test_case.py index 98b716b9..3d7bc30e 100644 --- a/framework/test_case.py +++ b/framework/test_case.py @@ -33,7 +33,6 @@ A base class for creating DTF test cases. """ import re -import debugger import traceback import signal import time @@ -374,6 +373,10 @@ class TestCase(object): """ Execute all test cases in one suite. """ + + # local import to avoid circular import + import debugger + # prepare debugger rerun case environment if self._enable_debug or self._debug_case: debugger.AliveSuite = self -- 2.30.2