Merge pull request #21171 from taosdata/test/update_push_message
update push message
This commit is contained in:
commit
1f76936661
|
@ -342,12 +342,28 @@ def main():
|
||||||
print('======== crash_gen run sucess and exit as expected ========')
|
print('======== crash_gen run sucess and exit as expected ========')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
text = f'''exit status: {msg_dict[status]}
|
cmd = crash_cmds.split('&')[2]
|
||||||
git commit : {git_commit}
|
if status == 0:
|
||||||
hostname: {hostname}
|
log_dir = "none"
|
||||||
start time: {starttime}
|
else:
|
||||||
end time: {endtime}
|
log_dir= "/root/pxiao/crash_gen_logs"
|
||||||
cmd: {crash_cmds}'''
|
|
||||||
|
if status == 3:
|
||||||
|
core_dir = "/root/pxiao/crash_gen_logs"
|
||||||
|
else:
|
||||||
|
core_dir = "none"
|
||||||
|
|
||||||
|
text = f'''exit status: {msg_dict[status]}
|
||||||
|
test scope: crash_gen
|
||||||
|
owner: pxiao
|
||||||
|
hostname: {hostname}
|
||||||
|
start time: {starttime}
|
||||||
|
end time: {endtime}
|
||||||
|
git commit : {git_commit}
|
||||||
|
log dir: {log_dir}
|
||||||
|
core dir: {core_dir}
|
||||||
|
cmd: {cmd}'''
|
||||||
|
|
||||||
send_msg(get_msg(text))
|
send_msg(get_msg(text))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("exception:", e)
|
print("exception:", e)
|
||||||
|
|
|
@ -377,13 +377,29 @@ def main():
|
||||||
print('======== crash_gen run sucess and exit as expected ========')
|
print('======== crash_gen run sucess and exit as expected ========')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
text = f'''exit status: {msg_dict[status]}
|
cmd = crash_cmds.split('&')[2]
|
||||||
git commit : {git_commit}
|
if status == 0:
|
||||||
hostname: {hostname}
|
log_dir = "none"
|
||||||
start time: {starttime}
|
else:
|
||||||
end time: {endtime}
|
log_dir= "/root/pxiao/crash_gen_logs"
|
||||||
cmd: {crash_cmds}'''
|
|
||||||
send_msg(get_msg(text))
|
if status == 3:
|
||||||
|
core_dir = "/root/pxiao/crash_gen_logs"
|
||||||
|
else:
|
||||||
|
core_dir = "none"
|
||||||
|
|
||||||
|
text = f'''exit status: {msg_dict[status]}
|
||||||
|
test scope: crash_gen
|
||||||
|
owner: pxiao
|
||||||
|
hostname: {hostname}
|
||||||
|
start time: {starttime}
|
||||||
|
end time: {endtime}
|
||||||
|
git commit : {git_commit}
|
||||||
|
log dir: {log_dir}
|
||||||
|
core dir: {core_dir}
|
||||||
|
cmd: {cmd}'''
|
||||||
|
|
||||||
|
send_msg(get_msg(text))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("exception:", e)
|
print("exception:", e)
|
||||||
exit(status)
|
exit(status)
|
||||||
|
|
|
@ -377,12 +377,28 @@ def main():
|
||||||
print('======== crash_gen run sucess and exit as expected ========')
|
print('======== crash_gen run sucess and exit as expected ========')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
text = f'''exit status: {msg_dict[status]}
|
cmd = crash_cmds.split('&')[2]
|
||||||
git commit : {git_commit}
|
if status == 0:
|
||||||
hostname: {hostname}
|
log_dir = "none"
|
||||||
start time: {starttime}
|
else:
|
||||||
end time: {endtime}
|
log_dir= "/root/pxiao/crash_gen_logs"
|
||||||
cmd: {crash_cmds}'''
|
|
||||||
|
if status == 3:
|
||||||
|
core_dir = "/root/pxiao/crash_gen_logs"
|
||||||
|
else:
|
||||||
|
core_dir = "none"
|
||||||
|
|
||||||
|
text = f'''exit status: {msg_dict[status]}
|
||||||
|
test scope: crash_gen
|
||||||
|
owner: pxiao
|
||||||
|
hostname: {hostname}
|
||||||
|
start time: {starttime}
|
||||||
|
end time: {endtime}
|
||||||
|
git commit : {git_commit}
|
||||||
|
log dir: {log_dir}
|
||||||
|
core dir: {core_dir}
|
||||||
|
cmd: {cmd}'''
|
||||||
|
|
||||||
send_msg(get_msg(text))
|
send_msg(get_msg(text))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("exception:", e)
|
print("exception:", e)
|
||||||
|
|
Loading…
Reference in New Issue