Skip to content

Conversation

@bandre-ucar
Copy link
Contributor

Bugfix handling subprocess output.

python3 would generate an attribute error while handling fatal errors from
subprocess output. It was working on a byte string where a unicode string was
expected. Change to using universal_newlines in subprocess call so that we
always get back a unicode string.

Flush stdout everytime printlog is done to ensure user can see progress when a series of long subprocess calls are being executed. GH-28

Testing:
python2/3 - unit tests - pass
python2/3 - manual testing ok.

python3 would generate an attribute error while handling fatal errors from
subprocess output. It was working on a byte string where a unicode string was
expected. Change to using universal_newlines in subprocess call so that we
always get back a unicode string.

Testing:
  python2/3 - unit tests - pass
  python2/3 - manual testing ok.
Flush stdout everytime printlog is done to ensure user can see progress when a
series of long subprocess calls are being executed.

Testing:
  python2/3 - unit tests - pass
  python2/3 - manual testing - ok, seems to improve display.
@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage remained the same at 70.195% when pulling 1cbf2ea on bandre-ucar:andre-bugfix into ed2e265 on NCAR:master.

@bandre-ucar bandre-ucar merged commit 1cbf2ea into ESMCI:master Nov 22, 2017
@bandre-ucar bandre-ucar deleted the andre-bugfix branch November 30, 2017 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants