diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-11-08 18:28:43 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-11-08 18:28:43 +0000 |
commit | 0de89dc7508baacfc0f3ca2c997975ab89eb2aec (patch) | |
tree | 1e84ad25e4d628889b18d7cae130212f806adc2d | |
parent | 14ae397fde3ef6b085da2da22e6b3d6c39d64f50 (diff) | |
download | ick-0de89dc7508baacfc0f3ca2c997975ab89eb2aec.tar.gz |
Run ssh without tty
-rw-r--r-- | icklib/project.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/icklib/project.py b/icklib/project.py index d752eee..3e206c3 100644 --- a/icklib/project.py +++ b/icklib/project.py @@ -107,9 +107,10 @@ class Project(object): timestamp=self.current_timestamp()) raise - run_state.logger.important( - 'Build status: {status}', - status=run_state.build_info.status) + if hasattr(run_state, 'build_info'): + run_state.logger.important( + 'Build status: {status}', + status=run_state.build_info.status) run_state.logger.important( 'Build log ends {timestamp}', timestamp=self.current_timestamp()) @@ -176,6 +177,7 @@ class Project(object): target.ssh_runcmd( whole_argv, remote_cwd=remote_cwd, + tty=False, stderr=subprocess.STDOUT, stdout_callback=line_logger.log_lines) line_logger.log_rest() |