Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
79b60651
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
79b60651
编写于
6月 12, 2015
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #666 from clebergnu/api_review_4th_round
API review: implement relative imports also on avocado.core.*
上级
dbb90ad3
d886d083
变更
38
隐藏空白更改
内联
并排
Showing
38 changed file
with
154 addition
and
153 deletion
+154
-153
avocado/core/aexpect.py
avocado/core/aexpect.py
+6
-6
avocado/core/app.py
avocado/core/app.py
+3
-3
avocado/core/data_dir.py
avocado/core/data_dir.py
+4
-4
avocado/core/job.py
avocado/core/job.py
+17
-17
avocado/core/loader.py
avocado/core/loader.py
+4
-4
avocado/core/multiplexer.py
avocado/core/multiplexer.py
+1
-1
avocado/core/output.py
avocado/core/output.py
+2
-2
avocado/core/parser.py
avocado/core/parser.py
+2
-2
avocado/core/plugins/builtin.py
avocado/core/plugins/builtin.py
+2
-2
avocado/core/plugins/config.py
avocado/core/plugins/config.py
+4
-4
avocado/core/plugins/distro.py
avocado/core/plugins/distro.py
+6
-6
avocado/core/plugins/exec_path.py
avocado/core/plugins/exec_path.py
+2
-2
avocado/core/plugins/gdb.py
avocado/core/plugins/gdb.py
+3
-3
avocado/core/plugins/htmlresult.py
avocado/core/plugins/htmlresult.py
+5
-5
avocado/core/plugins/journal.py
avocado/core/plugins/journal.py
+2
-2
avocado/core/plugins/jsonresult.py
avocado/core/plugins/jsonresult.py
+3
-3
avocado/core/plugins/manager.py
avocado/core/plugins/manager.py
+2
-2
avocado/core/plugins/multiplexer.py
avocado/core/plugins/multiplexer.py
+5
-5
avocado/core/plugins/plugin_list.py
avocado/core/plugins/plugin_list.py
+4
-4
avocado/core/plugins/remote.py
avocado/core/plugins/remote.py
+5
-5
avocado/core/plugins/runner.py
avocado/core/plugins/runner.py
+6
-6
avocado/core/plugins/sysinfo.py
avocado/core/plugins/sysinfo.py
+2
-2
avocado/core/plugins/test_list.py
avocado/core/plugins/test_list.py
+6
-6
avocado/core/plugins/vm.py
avocado/core/plugins/vm.py
+5
-5
avocado/core/plugins/wrapper.py
avocado/core/plugins/wrapper.py
+3
-3
avocado/core/plugins/xunit.py
avocado/core/plugins/xunit.py
+3
-3
avocado/core/remote/__init__.py
avocado/core/remote/__init__.py
+3
-3
avocado/core/remote/result.py
avocado/core/remote/result.py
+5
-5
avocado/core/remote/runner.py
avocado/core/remote/runner.py
+6
-6
avocado/core/restclient/cli/actions/server.py
avocado/core/restclient/cli/actions/server.py
+2
-2
avocado/core/restclient/cli/app.py
avocado/core/restclient/cli/app.py
+6
-5
avocado/core/restclient/cli/args/server.py
avocado/core/restclient/cli/args/server.py
+1
-1
avocado/core/restclient/connection.py
avocado/core/restclient/connection.py
+1
-1
avocado/core/runner.py
avocado/core/runner.py
+7
-7
avocado/core/settings.py
avocado/core/settings.py
+1
-1
avocado/core/sysinfo.py
avocado/core/sysinfo.py
+6
-6
avocado/core/test.py
avocado/core/test.py
+8
-8
avocado/core/tree.py
avocado/core/tree.py
+1
-1
未找到文件。
avocado/core/aexpect.py
浏览文件 @
79b60651
...
@@ -277,12 +277,12 @@ try:
...
@@ -277,12 +277,12 @@ try:
except
ImportError
:
except
ImportError
:
import
subprocess
import
subprocess
from
avocado
.utils
import
astring
from
.
.utils
import
astring
from
avocado
.utils
import
data_factory
from
.
.utils
import
data_factory
from
avocado
.utils
import
process
from
.
.utils
import
process
from
avocado
.utils
import
genio
from
.
.utils
import
genio
from
avocado
.utils
import
wait
from
.
.utils
import
wait
from
avocado
.utils
import
path
as
utils_path
from
.
.utils
import
path
as
utils_path
class
ExpectError
(
Exception
):
class
ExpectError
(
Exception
):
...
...
avocado/core/app.py
浏览文件 @
79b60651
...
@@ -18,9 +18,9 @@ The core Avocado application.
...
@@ -18,9 +18,9 @@ The core Avocado application.
import
os
import
os
from
avocado.core
.log
import
configure
from
.log
import
configure
from
avocado.core
.parser
import
Parser
from
.parser
import
Parser
from
avocado.core
.plugins.manager
import
get_plugin_manager
from
.plugins.manager
import
get_plugin_manager
class
AvocadoApp
(
object
):
class
AvocadoApp
(
object
):
...
...
avocado/core/data_dir.py
浏览文件 @
79b60651
...
@@ -33,10 +33,10 @@ import shutil
...
@@ -33,10 +33,10 @@ import shutil
import
time
import
time
import
tempfile
import
tempfile
from
avocado.core
import
job_id
from
.
import
job_id
from
avocado.core
.settings
import
settings
from
.settings
import
settings
from
avocado
.utils
import
path
as
utils_path
from
.
.utils
import
path
as
utils_path
from
avocado
.utils.data_structures
import
Borg
from
.
.utils.data_structures
import
Borg
_BASE_DIR
=
os
.
path
.
join
(
sys
.
modules
[
__name__
].
__file__
,
".."
,
".."
,
".."
)
_BASE_DIR
=
os
.
path
.
join
(
sys
.
modules
[
__name__
].
__file__
,
".."
,
".."
,
".."
)
...
...
avocado/core/job.py
浏览文件 @
79b60651
...
@@ -27,26 +27,26 @@ import shutil
...
@@ -27,26 +27,26 @@ import shutil
import
fnmatch
import
fnmatch
from
avocado
import
runtime
from
avocado
import
runtime
from
avocado.core
import
data_dir
from
.
import
data_dir
from
avocado.core
import
runner
from
.
import
runner
from
avocado.core
import
loader
from
.
import
loader
from
avocado.core
import
sysinfo
from
.
import
sysinfo
from
avocado.core
import
result
from
.
import
result
from
avocado.core
import
exit_codes
from
.
import
exit_codes
from
avocado.core
import
exceptions
from
.
import
exceptions
from
avocado.core
import
job_id
from
.
import
job_id
from
avocado.core
import
output
from
.
import
output
from
avocado.core
import
multiplexer
from
.
import
multiplexer
from
avocado.core
.settings
import
settings
from
.settings
import
settings
from
avocado.core
.plugins
import
jsonresult
from
.plugins
import
jsonresult
from
avocado.core
.plugins
import
xunit
from
.plugins
import
xunit
from
avocado.core
.plugins.builtin
import
ErrorsLoading
from
.plugins.builtin
import
ErrorsLoading
from
avocado
.utils
import
archive
from
.
.utils
import
archive
from
avocado
.utils
import
path
from
.
.utils
import
path
try
:
try
:
from
avocado.core
.plugins
import
htmlresult
from
.plugins
import
htmlresult
HTML_REPORT_SUPPORT
=
True
HTML_REPORT_SUPPORT
=
True
except
ImportError
:
except
ImportError
:
HTML_REPORT_SUPPORT
=
False
HTML_REPORT_SUPPORT
=
False
...
...
avocado/core/loader.py
浏览文件 @
79b60651
...
@@ -23,10 +23,10 @@ import os
...
@@ -23,10 +23,10 @@ import os
import
re
import
re
import
sys
import
sys
from
avocado.core
import
data_dir
from
.
import
data_dir
from
avocado.core
import
test
from
.
import
test
from
avocado.utils
import
path
from
.
import
output
from
avocado.core
import
output
from
..utils
import
path
try
:
try
:
import
cStringIO
as
StringIO
import
cStringIO
as
StringIO
...
...
avocado/core/multiplexer.py
浏览文件 @
79b60651
...
@@ -24,7 +24,7 @@ import itertools
...
@@ -24,7 +24,7 @@ import itertools
import
logging
import
logging
import
re
import
re
from
avocado.core
import
tree
from
.
import
tree
MULTIPLEX_CAPABLE
=
tree
.
MULTIPLEX_CAPABLE
MULTIPLEX_CAPABLE
=
tree
.
MULTIPLEX_CAPABLE
...
...
avocado/core/output.py
浏览文件 @
79b60651
...
@@ -19,8 +19,8 @@ import logging
...
@@ -19,8 +19,8 @@ import logging
import
os
import
os
import
sys
import
sys
from
avocado.utils
import
path
as
utils_path
from
.settings
import
settings
from
avocado.core.settings
import
settings
from
..utils
import
path
as
utils_path
class
FilterError
(
logging
.
Filter
):
class
FilterError
(
logging
.
Filter
):
...
...
avocado/core/parser.py
浏览文件 @
79b60651
...
@@ -20,8 +20,8 @@ Avocado application command line parsing.
...
@@ -20,8 +20,8 @@ Avocado application command line parsing.
import
sys
import
sys
import
argparse
import
argparse
from
avocado.core
import
tree
from
.
import
tree
from
avocado.core
import
settings
from
.
import
settings
from
avocado.version
import
VERSION
from
avocado.version
import
VERSION
PROG
=
'avocado'
PROG
=
'avocado'
...
...
avocado/core/plugins/builtin.py
浏览文件 @
79b60651
...
@@ -18,8 +18,8 @@ import os
...
@@ -18,8 +18,8 @@ import os
import
logging
import
logging
from
importlib
import
import_module
from
importlib
import
import_module
from
avocado.core.plugins
.plugin
import
Plugin
from
.plugin
import
Plugin
from
avocado.core
.settings
import
settings
from
.
.settings
import
settings
log
=
logging
.
getLogger
(
"avocado.app"
)
log
=
logging
.
getLogger
(
"avocado.app"
)
...
...
avocado/core/plugins/config.py
浏览文件 @
79b60651
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
# Copyright: Red Hat Inc. 2013-2014
# Copyright: Red Hat Inc. 2013-2014
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
from
avocado.core
import
output
from
.
import
plugin
from
avocado.core
import
data_dir
from
..
import
output
from
avocado.core.settings
import
settings
from
..
import
data_dir
from
avocado.core.plugins
import
plugin
from
..settings
import
settings
class
ConfigOptions
(
plugin
.
Plugin
):
class
ConfigOptions
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/distro.py
浏览文件 @
79b60651
...
@@ -17,12 +17,12 @@ import bz2
...
@@ -17,12 +17,12 @@ import bz2
import
sys
import
sys
import
json
import
json
from
avocado.core
import
output
from
.
import
plugin
from
avocado.core
import
exit_codes
from
..
import
output
from
avocado.core.plugins
import
plugin
from
..
import
exit_codes
from
avocado
.utils
import
process
from
..
.utils
import
process
from
avocado
.utils
import
path
as
utils_path
from
..
.utils
import
path
as
utils_path
from
avocado
.utils
import
distro
as
utils_distro
from
..
.utils
import
distro
as
utils_distro
class
SoftwarePackage
(
object
):
class
SoftwarePackage
(
object
):
...
...
avocado/core/plugins/exec_path.py
浏览文件 @
79b60651
...
@@ -17,8 +17,8 @@ Libexec PATHs modifier
...
@@ -17,8 +17,8 @@ Libexec PATHs modifier
import
os
import
os
import
sys
import
sys
from
avocado.core
import
exit_codes
,
output
from
.
import
plugin
from
avocado.core.plugins
import
plugin
from
..
import
exit_codes
,
output
class
ExecPath
(
plugin
.
Plugin
):
class
ExecPath
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/gdb.py
浏览文件 @
79b60651
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
"""Run tests with GDB goodies enabled."""
"""Run tests with GDB goodies enabled."""
from
avocado
import
runtime
from
avocado
import
runtime
from
avocado.utils
import
path
as
utils_path
from
.
import
plugin
from
avocado.core.plugins
import
plugin
from
..settings
import
settings
from
avocado.core.settings
import
settings
from
...utils
import
path
as
utils_path
class
GDB
(
plugin
.
Plugin
):
class
GDB
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/htmlresult.py
浏览文件 @
79b60651
...
@@ -23,11 +23,11 @@ import subprocess
...
@@ -23,11 +23,11 @@ import subprocess
import
pystache
import
pystache
from
avocado
import
runtime
from
avocado
import
runtime
from
avocado.core
import
exit_codes
from
.
import
plugin
from
avocado.core
import
output
from
..
import
exit_codes
from
avocado.core.result
import
TestResul
t
from
..
import
outpu
t
from
avocado.utils
import
path
as
utils_path
from
..result
import
TestResult
from
avocado.core.plugins
import
plugin
from
...utils
import
path
as
utils_path
class
ReportModel
(
object
):
class
ReportModel
(
object
):
...
...
avocado/core/plugins/journal.py
浏览文件 @
79b60651
...
@@ -18,8 +18,8 @@ import os
...
@@ -18,8 +18,8 @@ import os
import
sqlite3
import
sqlite3
import
datetime
import
datetime
from
avocado.core.plugins
import
plugin
from
.
import
plugin
from
avocado.core
.result
import
TestResult
from
.
.result
import
TestResult
JOURNAL_FILENAME
=
".journal.sqlite"
JOURNAL_FILENAME
=
".journal.sqlite"
...
...
avocado/core/plugins/jsonresult.py
浏览文件 @
79b60651
...
@@ -18,9 +18,9 @@ JSON output module.
...
@@ -18,9 +18,9 @@ JSON output module.
import
json
import
json
from
avocado.core
import
output
from
.
import
plugin
from
avocado.core.result
import
TestResul
t
from
..
import
outpu
t
from
avocado.core.plugins
import
plugin
from
..result
import
TestResult
class
JSONTestResult
(
TestResult
):
class
JSONTestResult
(
TestResult
):
...
...
avocado/core/plugins/manager.py
浏览文件 @
79b60651
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
import
logging
import
logging
from
avocado.core.plugins
.builtin
import
load_builtins
from
.builtin
import
load_builtins
from
avocado.core.plugins
.plugin
import
Plugin
from
.plugin
import
Plugin
DefaultPluginManager
=
None
DefaultPluginManager
=
None
...
...
avocado/core/plugins/multiplexer.py
浏览文件 @
79b60651
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
import
sys
import
sys
from
avocado.core.plugins
import
plugin
from
.
import
plugin
from
avocado.core
import
output
from
..
import
output
from
avocado.core
import
exit_codes
from
..
import
exit_codes
from
avocado.core
import
tree
from
..
import
tree
from
avocado.core
import
multiplexer
from
..
import
multiplexer
class
Multiplexer
(
plugin
.
Plugin
):
class
Multiplexer
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/plugin_list.py
浏览文件 @
79b60651
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
# Copyright: Red Hat Inc. 2013-2014
# Copyright: Red Hat Inc. 2013-2014
# Author: Ruda Moura <rmoura@redhat.com>
# Author: Ruda Moura <rmoura@redhat.com>
from
avocado.core
import
output
from
.
import
plugin
from
avocado.core.plugins
import
plugin
from
.builtin
import
ErrorsLoading
from
avocado.core.plugins.builtin
import
ErrorsLoading
from
.manager
import
get_plugin_manager
from
avocado.core.plugins.manager
import
get_plugin_manager
from
..
import
output
class
PluginList
(
plugin
.
Plugin
):
class
PluginList
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/remote.py
浏览文件 @
79b60651
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
import
getpass
import
getpass
from
avocado.core.plugins
import
plugin
from
.
import
plugin
from
avocado.core
.remote
import
RemoteTestResult
from
.
.remote
import
RemoteTestResult
from
avocado.core
.remote
import
RemoteTestRunner
from
.
.remote
import
RemoteTestRunner
from
avocado
.utils
import
remote
from
..
.utils
import
remote
class
RunRemote
(
plugin
.
Plugin
):
class
RunRemote
(
plugin
.
Plugin
):
...
@@ -78,7 +78,7 @@ class RunRemote(plugin.Plugin):
...
@@ -78,7 +78,7 @@ class RunRemote(plugin.Plugin):
if
not
getattr
(
app_args
,
arg
):
if
not
getattr
(
app_args
,
arg
):
missing
.
append
(
arg
)
missing
.
append
(
arg
)
if
missing
:
if
missing
:
from
avocado.core
import
output
,
exit_codes
from
..
import
output
,
exit_codes
import
sys
import
sys
view
=
output
.
View
(
app_args
=
app_args
)
view
=
output
.
View
(
app_args
=
app_args
)
e_msg
=
(
'Use of %s requires %s arguments to be set. Please set %s'
e_msg
=
(
'Use of %s requires %s arguments to be set. Please set %s'
...
...
avocado/core/plugins/runner.py
浏览文件 @
79b60651
...
@@ -18,12 +18,12 @@ Base Test Runner Plugins.
...
@@ -18,12 +18,12 @@ Base Test Runner Plugins.
import
sys
import
sys
from
avocado.core.settings
import
settings
from
.
import
plugin
from
avocado.core
import
exit_codes
from
..
import
exit_codes
from
avocado.core.plugins
import
plugin
from
..
import
output
from
avocado.core
import
output
from
..
import
job
from
avocado.core
import
job
from
..
import
multiplexer
from
avocado.core
import
multiplexer
from
..settings
import
settings
class
TestRunner
(
plugin
.
Plugin
):
class
TestRunner
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/sysinfo.py
浏览文件 @
79b60651
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
System information plugin
System information plugin
"""
"""
from
avocado.core
import
sysinfo
from
.
import
plugin
from
avocado.core.plugins
import
plugin
from
..
import
sysinfo
class
SystemInformation
(
plugin
.
Plugin
):
class
SystemInformation
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/test_list.py
浏览文件 @
79b60651
...
@@ -14,12 +14,12 @@
...
@@ -14,12 +14,12 @@
import
sys
import
sys
from
avocado.core
import
test
from
.
import
plugin
from
avocado.core
import
loader
from
..
import
test
from
avocado.core
import
output
from
..
import
loader
from
avocado.core
import
exit_codes
from
..
import
output
from
avocado.utils
import
astring
from
..
import
exit_codes
from
avocado.core.plugins
import
plugin
from
...utils
import
astring
class
TestLister
(
object
):
class
TestLister
(
object
):
...
...
avocado/core/plugins/vm.py
浏览文件 @
79b60651
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
import
getpass
import
getpass
from
avocado.core.plugins
import
plugin
from
.
import
plugin
from
avocado.core
.remote
import
VMTestResult
from
.
.remote
import
VMTestResult
from
avocado.core
.remote
import
RemoteTestRunner
from
.
.remote
import
RemoteTestRunner
from
avocado
.utils
import
virt
from
..
.utils
import
virt
class
RunVM
(
plugin
.
Plugin
):
class
RunVM
(
plugin
.
Plugin
):
...
@@ -83,7 +83,7 @@ class RunVM(plugin.Plugin):
...
@@ -83,7 +83,7 @@ class RunVM(plugin.Plugin):
if
not
getattr
(
app_args
,
arg
):
if
not
getattr
(
app_args
,
arg
):
missing
.
append
(
arg
)
missing
.
append
(
arg
)
if
missing
:
if
missing
:
from
avocado.core
import
output
,
exit_codes
from
..
import
output
,
exit_codes
import
sys
import
sys
view
=
output
.
View
(
app_args
=
app_args
)
view
=
output
.
View
(
app_args
=
app_args
)
e_msg
=
(
'Use of %s requires %s arguments to be set. Please set %s'
e_msg
=
(
'Use of %s requires %s arguments to be set. Please set %s'
...
...
avocado/core/plugins/wrapper.py
浏览文件 @
79b60651
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
import
os
import
os
import
sys
import
sys
from
.
import
plugin
from
..
import
exit_codes
from
..
import
output
from
avocado
import
runtime
from
avocado
import
runtime
from
avocado.core
import
exit_codes
from
avocado.core
import
output
from
avocado.core.plugins
import
plugin
class
Wrapper
(
plugin
.
Plugin
):
class
Wrapper
(
plugin
.
Plugin
):
...
...
avocado/core/plugins/xunit.py
浏览文件 @
79b60651
...
@@ -17,9 +17,9 @@
...
@@ -17,9 +17,9 @@
import
datetime
import
datetime
from
xml.sax.saxutils
import
quoteattr
from
xml.sax.saxutils
import
quoteattr
from
avocado.core
import
output
from
.
import
plugin
from
avocado.core.result
import
TestResul
t
from
..
import
outpu
t
from
avocado.core.plugins
import
plugin
from
..result
import
TestResult
# We use a subset of the XML format defined in this URL:
# We use a subset of the XML format defined in this URL:
...
...
avocado/core/remote/__init__.py
浏览文件 @
79b60651
...
@@ -12,6 +12,6 @@
...
@@ -12,6 +12,6 @@
# Copyright: Red Hat Inc. 2014-2015
# Copyright: Red Hat Inc. 2014-2015
# Author: Ruda Moura <rmoura@redhat.com>
# Author: Ruda Moura <rmoura@redhat.com>
from
avocado.core.remote
.test
import
RemoteTest
from
.test
import
RemoteTest
from
avocado.core.remote
.result
import
RemoteTestResult
,
VMTestResult
from
.result
import
RemoteTestResult
,
VMTestResult
from
avocado.core.remote
.runner
import
RemoteTestRunner
from
.runner
import
RemoteTestRunner
avocado/core/remote/result.py
浏览文件 @
79b60651
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
import
os
import
os
from
avocado.core
import
data_dir
from
..
import
data_dir
from
avocado.core
import
exceptions
from
..
import
exceptions
from
avocado.core
.result
import
HumanTestResult
from
.
.result
import
HumanTestResult
from
avocado
.utils
import
remote
from
..
.utils
import
remote
from
avocado
.utils
import
virt
from
..
.utils
import
virt
class
RemoteTestResult
(
HumanTestResult
):
class
RemoteTestResult
(
HumanTestResult
):
...
...
avocado/core/remote/runner.py
浏览文件 @
79b60651
...
@@ -18,12 +18,12 @@ import json
...
@@ -18,12 +18,12 @@ import json
import
os
import
os
import
re
import
re
from
avocado.core
import
exceptions
from
.test
import
RemoteTest
from
avocado.core
import
statu
s
from
..
import
exception
s
from
avocado.core.runner
import
TestRunner
from
..
import
status
from
avocado.core.remote.test
import
RemoteTest
from
..runner
import
TestRunner
from
avocado
.utils
import
archive
from
..
.utils
import
archive
from
avocado
.utils
import
stacktrace
from
..
.utils
import
stacktrace
from
fabric.exceptions
import
CommandTimeout
from
fabric.exceptions
import
CommandTimeout
...
...
avocado/core/restclient/cli/actions/server.py
浏览文件 @
79b60651
...
@@ -6,8 +6,8 @@ Module that implements the actions for the CLI App when the job toplevel
...
@@ -6,8 +6,8 @@ Module that implements the actions for the CLI App when the job toplevel
command is used
command is used
"""
"""
from
avocado.core.restclient
import
connection
from
.
import
base
from
avocado.core.restclient.cli.actions
import
base
from
...
import
connection
@
base
.
action
@
base
.
action
...
...
avocado/core/restclient/cli/app.py
浏览文件 @
79b60651
...
@@ -22,11 +22,12 @@ import types
...
@@ -22,11 +22,12 @@ import types
import
importlib
import
importlib
import
functools
import
functools
from
avocado.core
import
settings
from
.
import
parser
from
avocado.core
import
output
from
..
import
connection
from
avocado.core
import
exit_codes
from
...
import
settings
from
avocado.core.restclient
import
connection
from
...
import
output
from
avocado.core.restclient.cli
import
parser
from
...
import
exit_codes
__all__
=
[
'App'
]
__all__
=
[
'App'
]
...
...
avocado/core/restclient/cli/args/server.py
浏览文件 @
79b60651
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
This module has actions for the server command
This module has actions for the server command
"""
"""
from
avocado.core.restclient.cli.args
import
base
from
.
import
base
__all__
=
[
'ACTION_STATUS'
,
'ACTION_ARGUMENTS'
,
'ARGUMENTS'
]
__all__
=
[
'ACTION_STATUS'
,
'ACTION_ARGUMENTS'
,
'ARGUMENTS'
]
...
...
avocado/core/restclient/connection.py
浏览文件 @
79b60651
...
@@ -21,7 +21,7 @@ basic object that allows methods to be called on the remote server.
...
@@ -21,7 +21,7 @@ basic object that allows methods to be called on the remote server.
import
requests
import
requests
from
avocado.core
.settings
import
settings
from
.
.settings
import
settings
__all__
=
[
'get_default'
,
'Connection'
]
__all__
=
[
'get_default'
,
'Connection'
]
...
...
avocado/core/runner.py
浏览文件 @
79b60651
...
@@ -26,13 +26,13 @@ import sys
...
@@ -26,13 +26,13 @@ import sys
import
time
import
time
from
avocado
import
runtime
from
avocado
import
runtime
from
avocado.core
import
test
from
.
import
test
from
avocado.core
import
exceptions
from
.
import
exceptions
from
avocado.core
import
output
from
.
import
output
from
avocado.core
import
status
from
.
import
status
from
avocado.core
import
exit_codes
from
.
import
exit_codes
from
avocado
.utils
import
wait
from
.
.utils
import
wait
from
avocado
.utils
import
stacktrace
from
.
.utils
import
stacktrace
class
TestRunner
(
object
):
class
TestRunner
(
object
):
...
...
avocado/core/settings.py
浏览文件 @
79b60651
...
@@ -21,7 +21,7 @@ import os
...
@@ -21,7 +21,7 @@ import os
import
sys
import
sys
import
glob
import
glob
from
avocado
.utils
import
path
from
.
.utils
import
path
if
'VIRTUAL_ENV'
in
os
.
environ
:
if
'VIRTUAL_ENV'
in
os
.
environ
:
...
...
avocado/core/sysinfo.py
浏览文件 @
79b60651
...
@@ -23,12 +23,12 @@ try:
...
@@ -23,12 +23,12 @@ try:
except
ImportError
:
except
ImportError
:
import
subprocess
import
subprocess
from
avocado.utils
import
genio
from
.
import
output
from
avocado.utils
import
proces
s
from
.settings
import
setting
s
from
avocado.utils
import
software_manager
from
..utils
import
genio
from
avocado.utils
import
path
as
utils_path
from
..utils
import
process
from
avocado.core
import
output
from
..utils
import
software_manager
from
avocado.core.settings
import
settings
from
..utils
import
path
as
utils_path
log
=
logging
.
getLogger
(
"avocado.sysinfo"
)
log
=
logging
.
getLogger
(
"avocado.sysinfo"
)
...
...
avocado/core/test.py
浏览文件 @
79b60651
...
@@ -31,14 +31,14 @@ if sys.version_info[:2] == (2, 6):
...
@@ -31,14 +31,14 @@ if sys.version_info[:2] == (2, 6):
else
:
else
:
import
unittest
import
unittest
from
avocado.core
import
data_dir
from
.
import
data_dir
from
avocado.core
import
sysinfo
from
.
import
sysinfo
from
avocado.core
import
exceptions
from
.
import
exceptions
from
avocado.core
import
multiplexer
from
.
import
multiplexer
from
avocado
.utils
import
genio
from
.
.utils
import
genio
from
avocado
.utils
import
path
as
utils_path
from
.
.utils
import
path
as
utils_path
from
avocado
.utils
import
process
from
.
.utils
import
process
from
avocado
.utils
import
stacktrace
from
.
.utils
import
stacktrace
from
avocado.version
import
VERSION
from
avocado.version
import
VERSION
...
...
avocado/core/tree.py
浏览文件 @
79b60651
...
@@ -49,7 +49,7 @@ else:
...
@@ -49,7 +49,7 @@ else:
except
ImportError
:
except
ImportError
:
from
yaml
import
Loader
from
yaml
import
Loader
from
avocado.core
import
output
from
.
import
output
# Mapping for yaml flags
# Mapping for yaml flags
YAML_INCLUDE
=
0
YAML_INCLUDE
=
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录