update push message
This commit is contained in:
parent
5119594584
commit
760ccfd991
|
@ -343,12 +343,27 @@ def main():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = crash_cmds.split('&')[2]
|
cmd = crash_cmds.split('&')[2]
|
||||||
text = f'''exit status: {msg_dict[status]}
|
if status == 0:
|
||||||
git commit : {git_commit}
|
log_dir = "none"
|
||||||
|
else:
|
||||||
|
log_dir= "/root/pxiao/crash_gen_logs"
|
||||||
|
|
||||||
|
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}
|
hostname: {hostname}
|
||||||
start time: {starttime}
|
start time: {starttime}
|
||||||
end time: {endtime}
|
end time: {endtime}
|
||||||
|
git commit : {git_commit}
|
||||||
|
log dir: {log_dir}
|
||||||
|
core dir: {core_dir}
|
||||||
cmd: {cmd}'''
|
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)
|
||||||
|
|
|
@ -378,13 +378,28 @@ def main():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = crash_cmds.split('&')[2]
|
cmd = crash_cmds.split('&')[2]
|
||||||
text = f'''exit status: {msg_dict[status]}
|
if status == 0:
|
||||||
git commit : {git_commit}
|
log_dir = "none"
|
||||||
|
else:
|
||||||
|
log_dir= "/root/pxiao/crash_gen_logs"
|
||||||
|
|
||||||
|
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}
|
hostname: {hostname}
|
||||||
start time: {starttime}
|
start time: {starttime}
|
||||||
end time: {endtime}
|
end time: {endtime}
|
||||||
|
git commit : {git_commit}
|
||||||
|
log dir: {log_dir}
|
||||||
|
core dir: {core_dir}
|
||||||
cmd: {cmd}'''
|
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)
|
||||||
exit(status)
|
exit(status)
|
||||||
|
|
|
@ -378,12 +378,27 @@ def main():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = crash_cmds.split('&')[2]
|
cmd = crash_cmds.split('&')[2]
|
||||||
text = f'''exit status: {msg_dict[status]}
|
if status == 0:
|
||||||
git commit : {git_commit}
|
log_dir = "none"
|
||||||
|
else:
|
||||||
|
log_dir= "/root/pxiao/crash_gen_logs"
|
||||||
|
|
||||||
|
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}
|
hostname: {hostname}
|
||||||
start time: {starttime}
|
start time: {starttime}
|
||||||
end time: {endtime}
|
end time: {endtime}
|
||||||
|
git commit : {git_commit}
|
||||||
|
log dir: {log_dir}
|
||||||
|
core dir: {core_dir}
|
||||||
cmd: {cmd}'''
|
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