From patchwork Mon Aug 9 12:40:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Owen Hilyard X-Patchwork-Id: 96731 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4E5CFA0C4C; Mon, 9 Aug 2021 14:41:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12AEE4068A; Mon, 9 Aug 2021 14:41:08 +0200 (CEST) Received: from mail-ua1-f98.google.com (mail-ua1-f98.google.com [209.85.222.98]) by mails.dpdk.org (Postfix) with ESMTP id BD9914003C for ; Mon, 9 Aug 2021 14:41:06 +0200 (CEST) Received: by mail-ua1-f98.google.com with SMTP id f25so643504uam.1 for ; Mon, 09 Aug 2021 05:41: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=eSw5/qUG4gsM2RXbDIavcLRUGGGW3gEPbd3Z+6mcpFCK4HQLrYcF6ouVDfhW51ft1l g9CKpGKH0QQHe2XxkAjKXZgwidxz+nqjRAdVbONUJeh0FxobMzsDPvyMU8Oxizv1+I3s esHvDvg2aAqpqIxqBaPEN0+sDB+0A+B1umBDs= 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=r+ZLSB4+05eMmgWydHCExkYtBy0KfxT9YrzrNlMAfF3TqxZYJp3kDZuD/yRi0gjn0C oecwW/QHylRymD26SsJKOV27NXuxyq271eVRQqL4WUR430mzNw1FCV/iDi+5pHP7IpUe CIIi5ZODmTcpKmakuZjbPrOm3jH266DQ67viWV0ZP3dspwDC+St4fiJOQBMTm3zoOY3f +WjDT7SEx+vPLDUfwN+MDt+f26sDmNSUlFEMQGnLubeGg47bX6lS4YcDMCuwJ08kMSJf u4Bod4gy26LMzSj3MrpwLifX0wAj6T+gMdOOwAyt9sWNCO0yCZNP6AOkyZ9Zr6rBCzQZ UY8Q== X-Gm-Message-State: AOAM531l5Pk3F7MY3TsW9Zqu0GIzPDIvedkvuPYcUqcneI/UWw4aUKtR TFOFg0aZ48Sd5erD8AeFHF+s3ZhiV4xVnYICNXu46QWd+g2eCTcN9C5r3ckwv9tbcGUwHprbwt5 tKstlGqnUFSeJV+qMgyiAYlBQL3BeiQWUS9w50UobjSX6rAl2/LwfdHgY3Jv9ebn97H1kS9Gct1 YJD8RUN9cVRS2VXA== X-Google-Smtp-Source: ABdhPJxzMnDbqxxHWGzC3vKheve8cyx4LYbIlWZ07w36SycAW2NXxwd16XsUgtgqH95qMawat2ffwQ+vNNTl X-Received: by 2002:ab0:906:: with SMTP id w6mr15891094uag.37.1628512866154; Mon, 09 Aug 2021 05:41: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 a35sm5063362uax.2.2021.08.09.05.41.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Aug 2021 05:41: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 87642605248B; Mon, 9 Aug 2021 08:41:05 -0400 (EDT) From: ohilyard@iol.unh.edu To: dts@dpdk.org Cc: lijuan.tu@intel.com, Owen Hilyard Date: Mon, 9 Aug 2021 08:40:59 -0400 Message-Id: <20210809124101.13719-1-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [dts] [PATCH v2 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