Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
8c01f5e8
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8c01f5e8
编写于
7月 19, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: only stop taosd once win test
上级
b71c3d52
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
10 deletion
+18
-10
tests/pytest/util/dnodes.py
tests/pytest/util/dnodes.py
+16
-7
tests/tsim/inc/simParse.h
tests/tsim/inc/simParse.h
+2
-2
tools/shell/src/shellEngine.c
tools/shell/src/shellEngine.c
+0
-1
未找到文件。
tests/pytest/util/dnodes.py
浏览文件 @
8c01f5e8
...
...
@@ -488,10 +488,13 @@ class TDDnode:
psCmd
=
"ps -ef|grep -w %s| grep -v grep | awk '{print $2}'"
%
toBeKilled
processID
=
subprocess
.
check_output
(
psCmd
,
shell
=
True
).
decode
(
"utf-8"
)
onlyKillOnceWindows
=
0
while
(
processID
):
killCmd
=
"kill -INT %s > /dev/null 2>&1"
%
processID
os
.
system
(
killCmd
)
if
not
platform
.
system
().
lower
()
==
'windows'
or
(
onlyKillOnceWindows
==
0
and
platform
.
system
().
lower
()
==
'windows'
):
killCmd
=
"kill -INT %s > /dev/null 2>&1"
%
processID
os
.
system
(
killCmd
)
onlyKillOnceWindows
=
1
time
.
sleep
(
1
)
processID
=
subprocess
.
check_output
(
psCmd
,
shell
=
True
).
decode
(
"utf-8"
)
...
...
@@ -524,9 +527,12 @@ class TDDnode:
processID
=
subprocess
.
check_output
(
psCmd
,
shell
=
True
).
decode
(
"utf-8"
)
onlyKillOnceWindows
=
0
while
(
processID
):
killCmd
=
"kill -INT %s > /dev/null 2>&1"
%
processID
os
.
system
(
killCmd
)
if
not
platform
.
system
().
lower
()
==
'windows'
or
(
onlyKillOnceWindows
==
0
and
platform
.
system
().
lower
()
==
'windows'
):
killCmd
=
"kill -INT %s > /dev/null 2>&1"
%
processID
os
.
system
(
killCmd
)
onlyKillOnceWindows
=
1
time
.
sleep
(
1
)
processID
=
subprocess
.
check_output
(
psCmd
,
shell
=
True
).
decode
(
"utf-8"
)
...
...
@@ -550,9 +556,12 @@ class TDDnode:
processID
=
subprocess
.
check_output
(
psCmd
,
shell
=
True
).
decode
(
"utf-8"
)
onlyKillOnceWindows
=
0
while
(
processID
):
killCmd
=
"kill -KILL %s > /dev/null 2>&1"
%
processID
os
.
system
(
killCmd
)
if
not
platform
.
system
().
lower
()
==
'windows'
or
(
onlyKillOnceWindows
==
0
and
platform
.
system
().
lower
()
==
'windows'
):
killCmd
=
"kill -KILL %s > /dev/null 2>&1"
%
processID
os
.
system
(
killCmd
)
onlyKillOnceWindows
=
1
time
.
sleep
(
1
)
processID
=
subprocess
.
check_output
(
psCmd
,
shell
=
True
).
decode
(
"utf-8"
)
...
...
tests/tsim/inc/simParse.h
浏览文件 @
8c01f5e8
...
...
@@ -35,14 +35,14 @@ enum {
/* label stack */
typedef
struct
{
char
top
;
/* number of labels */
int8_t
top
;
/* number of labels */
int16_t
pos
[
MAX_NUM_LABLES
];
/* the position of the label */
char
label
[
MAX_NUM_LABLES
][
MAX_LABEL_LEN
];
/* name of the label */
}
SLabel
;
/* block definition */
typedef
struct
{
char
top
;
/* the number of blocks stacked */
int8_t
top
;
/* the number of blocks stacked */
char
type
[
MAX_NUM_BLOCK
];
/* the block type */
int16_t
*
pos
[
MAX_NUM_BLOCK
];
/* position of the jump for if/elif/case */
int16_t
back
[
MAX_NUM_BLOCK
];
/* go back, endw and continue */
...
...
tools/shell/src/shellEngine.c
浏览文件 @
8c01f5e8
...
...
@@ -758,7 +758,6 @@ void shellReadHistory() {
taosCloseFile
(
&
pFile
);
int64_t
file_size
;
if
(
taosStatFile
(
pHistory
->
file
,
&
file_size
,
NULL
)
==
0
&&
file_size
>
SHELL_MAX_COMMAND_SIZE
)
{
fprintf
(
stdout
,
"%s(%d) %s %08"
PRId64
"
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
taosGetSelfPthreadId
());
fflush
(
stdout
);
TdFilePtr
pFile
=
taosOpenFile
(
pHistory
->
file
,
TD_FILE_CREATE
|
TD_FILE_WRITE
|
TD_FILE_STREAM
|
TD_FILE_TRUNC
);
if
(
pFile
==
NULL
)
return
;
int32_t
endIndex
=
pHistory
->
hstart
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录