Permalink
Browse files

Add stage name to exit msg

  • Loading branch information...
1 parent b52bdbb commit 4a95da767af8748add214d26753a49fe939b35c0 Anton Grudko committed Nov 14, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 n3d.py
View
8 n3d.py
@@ -90,7 +90,7 @@ def pexpect_filter(self, line):
result = stage_name + ' : ' + line
else:
result = line
- if line[-1] != '\n':
+ if line[-1] not in ('\r', '\n'):
result+= '\r\n'
return result
@@ -124,8 +124,10 @@ def apply_stage(self, action):
os.chdir(oldcwd)
time_done = datetime.now()
run_time = (time_done - time_init)
- exit_log = "Exit status: %s, run time: %s" % (self.cur_status,
- run_time)
+ exit_log = "%s exit status: %s, run time: %s" % (
+ self.stage_name(stage),
+ self.cur_status,
+ run_time)
if int(self.cur_status) == 0:
log.info(exit_log)
else:

0 comments on commit 4a95da7

Please sign in to comment.