Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
84653478
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,发现更多精彩内容 >>
未验证
提交
84653478
编写于
7月 11, 2016
作者:
A
Amador Pahim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Yet another spellcheck.
Signed-off-by:
N
Amador Pahim
<
apahim@redhat.com
>
上级
c0ebd3f1
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
15 addition
and
15 deletion
+15
-15
avocado/core/multiplexer.py
avocado/core/multiplexer.py
+5
-5
avocado/core/remote/result.py
avocado/core/remote/result.py
+1
-1
avocado/core/test.py
avocado/core/test.py
+3
-3
avocado/core/tree.py
avocado/core/tree.py
+1
-1
avocado/utils/astring.py
avocado/utils/astring.py
+1
-1
avocado/utils/memory.py
avocado/utils/memory.py
+1
-1
avocado/utils/script.py
avocado/utils/script.py
+2
-2
selftests/unit/test_tree.py
selftests/unit/test_tree.py
+1
-1
未找到文件。
avocado/core/multiplexer.py
浏览文件 @
84653478
...
...
@@ -199,11 +199,11 @@ class AvocadoParams(object):
converts user-friendly asterisk path to python regexp and compiles it:
path = "" => ^$
path = "/" => /
path = "/
asdf/fdsa" => /asdf/fdsa
path = "
asdf/fdsa" => $MUX_ENTRY/?.*/asdf/fdsa
path = "/*/
asdf" => /[^/]*/asdf
path = "
asdf/*" => $MUX_ENTRY/?.*/asdf
/.*
path = "/
asdf/*" => /asdf
/.*
path = "/
foo/bar" => /foo/bar
path = "
foo/bar" => $MUX_ENTRY/?.*/foo/bar
path = "/*/
foo" => /[^/]*/foo
path = "
foo/*" => $MUX_ENTRY/?.*/foo
/.*
path = "/
foo/*" => /foo
/.*
"""
if
not
path
:
return
re
.
compile
(
'^$'
)
...
...
avocado/core/remote/result.py
浏览文件 @
84653478
# This rogram is free software; you can redistribute it and/or modify
# This
p
rogram 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.
...
...
avocado/core/test.py
浏览文件 @
84653478
...
...
@@ -90,9 +90,9 @@ class TestName(object):
fsname
=
astring
.
string_to_safe_path
(
name
)
if
len
(
name
)
==
len
(
fsname
):
# everything fits in
return
fsname
# 001-mytest;
aaa
# 001-mytest;
a
# 001-myte;
aaa
# 001-mytest;
foo
# 001-mytest;
f
# 001-myte;
foo
idx_fit_variant
=
len
(
fsname
)
-
len
(
self
.
str_variant
)
if
idx_fit_variant
>
len
(
self
.
str_uid
):
# full uid+variant
return
(
fsname
[:
idx_fit_variant
]
+
...
...
avocado/core/tree.py
浏览文件 @
84653478
...
...
@@ -287,7 +287,7 @@ class TreeNode(object):
node
=
None
def
iter_leaves
(
self
):
""" Iterate throuh leaf nodes """
""" Iterate throu
g
h leaf nodes """
for
node
in
self
.
iter_children_preorder
():
if
node
.
is_leaf
:
yield
node
...
...
avocado/utils/astring.py
浏览文件 @
84653478
...
...
@@ -200,7 +200,7 @@ def tabular_output(matrix, header=None):
def
string_safe_encode
(
string
):
"""
People tend to mix unicode strems with encoded strings. This function
People tend to mix unicode stre
a
ms with encoded strings. This function
tries to replace any input with a valid utf-8 encoded ascii stream.
"""
if
not
isinstance
(
string
,
basestring
):
...
...
avocado/utils/memory.py
浏览文件 @
84653478
...
...
@@ -220,7 +220,7 @@ def get_buddy_info(chunk_sizes, nodes="all", zones="all"):
2^chunk_size * page_size
The chunk_sizes can be string make up by all orders that you want to check
split
ed
with blank or a mathematical expression with ``>``, ``<`` or ``=``.
split with blank or a mathematical expression with ``>``, ``<`` or ``=``.
For example:
* The input of chunk_size could be: ``0 2 4``, and the return will be
...
...
avocado/utils/script.py
浏览文件 @
84653478
...
...
@@ -136,7 +136,7 @@ def make_script(path, content, mode=DEFAULT_MODE):
Creates a new script stored in the file system.
:param path: the script file name.
:param contet: the script content.
:param conte
n
t: the script content.
:param mode: set file mode, default to 0775.
:return: the script path.
"""
...
...
@@ -150,7 +150,7 @@ def make_temp_script(name, content, prefix='avocado_script', mode=DEFAULT_MODE):
Creates a new temporary script stored in the file system.
:param path: the script file name.
:param contet: the script content.
:param conte
n
t: the script content.
:param prefix: the directory prefix Default to 'avocado_script'.
:param mode: set file mode, default to 0775.
:return: the script path.
...
...
selftests/unit/test_tree.py
浏览文件 @
84653478
...
...
@@ -117,7 +117,7 @@ class TestTree(unittest.TestCase):
leaves
=
[
'intel'
,
'amd'
,
'arm'
,
'scsi'
,
'virtio'
,
'fedora'
,
'mint'
,
'prod'
]
self
.
assertEqual
(
leaves
,
self
.
tree
.
get_leaves
())
# asci contain all leaves and doesn't raise any exceptions
# asci
i
contain all leaves and doesn't raise any exceptions
ascii
=
tree
.
tree_view
(
self
.
tree
,
0
,
False
)
for
leaf
in
leaves
:
self
.
assertIn
(
leaf
,
ascii
,
"Leaf %s not in asci:
\n
%s"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录