diff options
author | Hugh Saunders <hugh@wherenow.org> | 2013-04-26 08:26:11 +0100 |
---|---|---|
committer | Hugh Saunders <hugh@wherenow.org> | 2013-05-23 13:37:09 +0100 |
commit | a3585ef62dbaa2c67f5b400f41e02cc686be5e7c (patch) | |
tree | 54da9aea6d4253729590544f5bd347113af24ba2 /tools | |
parent | 2a56a32edb9ce2ee8df8e467e3c938224accaf6d (diff) | |
download | python-glanceclient-a3585ef62dbaa2c67f5b400f41e02cc686be5e7c.tar.gz |
Don't attempt to read stdin if it is empty.
* Check for available data size in v1/shell.py/_set_data_field, don't
read if 0.
* Add test_shell.py including tests for 3x stdin scenarios:
* closed
* open and empty
* open with data
Change-Id: I6ff65b0e226be509de9cd3f021560081529283b0
Fixes: bug #1173044
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions