update push message

This commit is contained in:
Ping Xiao 2023-05-05 20:11:48 +08:00
parent 1e9bca79a4
commit 5119594584
3 changed files with 18 additions and 15 deletions

View File

@ -342,12 +342,13 @@ def main():
print('======== crash_gen run sucess and exit as expected ========')
try:
cmd = crash_cmds.split('&')[2]
text = f'''exit status: {msg_dict[status]}
git commit : {git_commit}
hostname: {hostname}
start time: {starttime}
end time: {endtime}
cmd: {crash_cmds}'''
git commit : {git_commit}
hostname: {hostname}
start time: {starttime}
end time: {endtime}
cmd: {cmd}'''
send_msg(get_msg(text))
except Exception as e:
print("exception:", e)

View File

@ -377,12 +377,13 @@ def main():
print('======== crash_gen run sucess and exit as expected ========')
try:
cmd = crash_cmds.split('&')[2]
text = f'''exit status: {msg_dict[status]}
git commit : {git_commit}
hostname: {hostname}
start time: {starttime}
end time: {endtime}
cmd: {crash_cmds}'''
git commit : {git_commit}
hostname: {hostname}
start time: {starttime}
end time: {endtime}
cmd: {cmd}'''
send_msg(get_msg(text))
except Exception as e:
print("exception:", e)

View File

@ -377,12 +377,13 @@ def main():
print('======== crash_gen run sucess and exit as expected ========')
try:
cmd = crash_cmds.split('&')[2]
text = f'''exit status: {msg_dict[status]}
git commit : {git_commit}
hostname: {hostname}
start time: {starttime}
end time: {endtime}
cmd: {crash_cmds}'''
git commit : {git_commit}
hostname: {hostname}
start time: {starttime}
end time: {endtime}
cmd: {cmd}'''
send_msg(get_msg(text))
except Exception as e:
print("exception:", e)