Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
46c9969b
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,发现更多精彩内容 >>
未验证
提交
46c9969b
编写于
9月 07, 2018
作者:
C
Cleber Rosa
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'cacarrara/enable-pylint-w0705'
Signed-off-by:
N
Cleber Rosa
<
crosa@redhat.com
>
上级
32c638a6
f02140f7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
8 deletion
+2
-8
avocado/utils/partition.py
avocado/utils/partition.py
+0
-4
optional_plugins/html/avocado_result_html/__init__.py
optional_plugins/html/avocado_result_html/__init__.py
+1
-3
selftests/checkall
selftests/checkall
+1
-1
未找到文件。
avocado/utils/partition.py
浏览文件 @
46c9969b
...
...
@@ -254,10 +254,6 @@ class Partition(object):
cmd
=
"lsof "
+
mnt
out
=
process
.
system_output
(
cmd
)
return
[
int
(
line
.
split
()[
1
])
for
line
in
out
.
splitlines
()[
1
:]]
except
FileNotFoundError
as
details
:
msg
=
'Could not find lsof executable'
LOG
.
error
(
msg
)
raise
PartitionError
(
self
,
msg
,
details
)
except
OSError
as
details
:
msg
=
'Could not run lsof to identify processes using "%s"'
%
mnt
LOG
.
error
(
msg
)
...
...
optional_plugins/html/avocado_result_html/__init__.py
浏览文件 @
46c9969b
...
...
@@ -98,10 +98,8 @@ class ReportModel(object):
try
:
with
open
(
sysinfo_path
,
'r'
)
as
sysinfo_file
:
sysinfo_contents
=
sysinfo_file
.
read
()
except
OSError
as
details
:
except
(
OSError
,
IOError
)
as
details
:
sysinfo_contents
=
"Error reading %s: %s"
%
(
sysinfo_path
,
details
)
except
IOError
as
details
:
sysinfo_contents
=
os
.
uname
()[
1
]
return
sysinfo_contents
def
hostname
(
self
):
...
...
selftests/checkall
浏览文件 @
46c9969b
...
...
@@ -169,7 +169,7 @@ results_dir_content() {
[
"
$SKIP_RESULTSDIR_CHECK
"
]
||
RESULTS_DIR_CONTENT
=
"
$(
ls
$RESULTS_DIR
2> /dev/null
)
"
LINT_CMD
=
"inspekt lint --exclude=.git"
PYLINT_ENABLE
=
"--enable R0401,W0101,W0102,W0104,W0105,W0106,W0107,W0108,W0109,W0111,W0120,W0122,W0123,W0124,W0125,W0150,W0199,W0211,W0222,W0223,W0232,W0233,W0301,W0311,W0312,W0401,W0404,W0406,W0410,W0601,W0602,W0603,W0604,W0611,W0612,W0613,W0614,W0621,W0622,W0623,W0631,W0640,W0711,W1201,W1202,W1300,W1301,W1302,W1303,W1304,W1305,W1306,W1307,W1401,W1402,W1501,W1503,W1645"
PYLINT_ENABLE
=
"--enable R0401,W0101,W0102,W0104,W0105,W0106,W0107,W0108,W0109,W0111,W0120,W0122,W0123,W0124,W0125,W0150,W0199,W0211,W0222,W0223,W0232,W0233,W0301,W0311,W0312,W0401,W0404,W0406,W0410,W0601,W0602,W0603,W0604,W0611,W0612,W0613,W0614,W0621,W0622,W0623,W0631,W0640,W07
05,W07
11,W1201,W1202,W1300,W1301,W1302,W1303,W1304,W1305,W1306,W1307,W1401,W1402,W1501,W1503,W1645"
if
[
"
$AVOCADO_PARALLEL_LINT
"
]
;
then
LINT_CMD
=
"
$LINT_CMD
--parallel=
$AVOCADO_PARALLEL_LINT
"
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录