提交 f8f898a7 编写于 作者: C Cleber Rosa

API review: move avocado.gdb to avocado.utils.gdb

This means also moving its dependencies, namely spark and gdbmi_parser,
to a place under avocado/utils. I've chosen to add another level here
to clearly identify those deps as 3rd party external modules that are
reused in Avocado.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 3ca74282
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright: Red Hat Inc. 2015
# Author: Cleber Rosa <cleber@redhat.com>
......@@ -31,7 +31,7 @@ except ImportError:
import subprocess
from avocado.utils import network
from avocado.core import gdbmi_parser
from avocado.utils.external import gdbmi_parser
GDB_PROMPT = '(gdb)'
GDB_EXIT = '^exit'
......
......@@ -34,8 +34,8 @@ except ImportError:
import subprocess
SUBPROCESS32_SUPPORT = False
from avocado import gdb
from avocado import runtime
from avocado.utils import gdb
from avocado.core import exceptions
log = logging.getLogger('avocado.test')
......
......@@ -3,8 +3,8 @@
import os
from avocado import Test
from avocado import gdb
from avocado import main
from avocado.utils import gdb
from avocado.utils import process
......
......@@ -3,9 +3,9 @@
import os
import shutil
from avocado import gdb
from avocado import main
from avocado import Test
from avocado.utils import gdb
from avocado.utils import build
......
......@@ -9,7 +9,7 @@ if os.path.isdir(os.path.join(basedir, 'avocado')):
sys.path.append(basedir)
from avocado import gdb
from avocado.utils import gdb
class GDBRemoteTest(unittest.TestCase):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册