Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
d54478de
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,发现更多精彩内容 >>
未验证
提交
d54478de
编写于
3月 11, 2019
作者:
C
Cleber Rosa
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'clebergnu/lgtm_alerts'
Signed-off-by:
N
Cleber Rosa
<
crosa@redhat.com
>
上级
ebce18f2
40b2cf38
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
7 addition
and
9 deletion
+7
-9
avocado/utils/gdb.py
avocado/utils/gdb.py
+3
-2
avocado/utils/iso9660.py
avocado/utils/iso9660.py
+1
-3
avocado/utils/process.py
avocado/utils/process.py
+3
-4
未找到文件。
avocado/utils/gdb.py
浏览文件 @
d54478de
...
...
@@ -427,7 +427,7 @@ class GDB(object):
self
.
send_gdb_command
(
command
)
responses
=
self
.
read_until_break
()
result_response
=
Non
e
result_response
_received
=
Fals
e
for
line
in
responses
:
# If the line can not be properly parsed, it is *most likely*
...
...
@@ -442,10 +442,11 @@ class GDB(object):
parsed_response
.
record_type
==
'stream'
):
cmd
.
stream_messages
.
append
(
parsed_response
)
elif
parsed_response
.
type
==
'result'
:
if
result_response
is
not
None
:
if
result_response
_received
:
# raise an exception here, because no two result
# responses should come from a single command AFAIK
raise
Exception
(
"Many result responses to a single cmd"
)
result_response_received
=
True
cmd
.
result
=
parsed_response
else
:
self
.
async_messages
.
append
(
parsed_response
)
...
...
avocado/utils/iso9660.py
浏览文件 @
d54478de
...
...
@@ -34,7 +34,6 @@ import sys
import
tempfile
from
.
import
process
from
.
import
path
as
utils_path
try
:
...
...
@@ -130,7 +129,6 @@ class BaseIso9660(object):
"""
def
__init__
(
self
,
path
):
utils_path
.
check_readable
(
path
)
self
.
path
=
path
def
read
(
self
,
path
):
...
...
@@ -382,7 +380,7 @@ class ISO9660PyCDLib(MixInMntDirMount, BaseIso9660):
def
__init__
(
self
,
path
):
if
not
has_pycdlib
():
raise
RuntimeError
(
'This class requires the pycdlib library'
)
s
elf
.
path
=
path
s
uper
(
ISO9660PyCDLib
,
self
).
__init__
(
path
)
self
.
_iso
=
None
self
.
_iso_opened_for_create
=
False
...
...
avocado/utils/process.py
浏览文件 @
d54478de
...
...
@@ -1149,11 +1149,10 @@ class GDBSubProcess(object):
elif
gdb
.
is_break_hit
(
parsed_msg
):
# waits on fifo read() until end of debug session is notified
r
=
self
.
handle_break_hit
(
parsed_msg
)
if
r
==
'C'
:
if
self
.
handle_break_hit
(
parsed_msg
)
==
'C'
:
self
.
gdb
.
connect
(
self
.
gdb_server
.
port
)
if
self
.
_is_thread_stopped
():
r
=
self
.
gdb
.
cli_cmd
(
"continue"
)
self
.
gdb
.
cli_cmd
(
"continue"
)
else
:
log
.
warn
(
'Binary "%s" terminated inside the '
'debugger before avocado was resumed. '
...
...
@@ -1169,7 +1168,7 @@ class GDBSubProcess(object):
elif
gdb
.
is_fatal_signal
(
parsed_msg
):
# waits on fifo read() until end of debug session is notified
r
=
self
.
handle_fatal_signal
(
parsed_msg
)
self
.
handle_fatal_signal
(
parsed_msg
)
log
.
warn
(
'Because "%s" received a fatal signal, this test '
'is going to be skipped.'
,
self
.
binary
)
# pylint: disable=E0702
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录