aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-19 11:58:47 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-19 11:58:47 +0200
commit92a3552cde4abca1ebd1675b01376312290fdf4a (patch)
treed16054fb4097785f54bcd3adb6d5d68de58480ff
parent3e3bca8205f247d45c426fbcd2e58ee45ec4b853 (diff)
downloadlinux-conf-perf-92a3552cde4abca1ebd1675b01376312290fdf4a.tar.gz
linux-conf-perf-92a3552cde4abca1ebd1675b01376312290fdf4a.tar.bz2
linux-conf-perf-92a3552cde4abca1ebd1675b01376312290fdf4a.zip
Fix utils.callsubprocess stdin
-rw-r--r--scripts/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/utils.py b/scripts/utils.py
index e06bdbb..af98fce 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -40,7 +40,10 @@ def callsubprocess(process_name, process, show_output = True,
pass
if stdin != None:
- sprc.stdin.write(bytes(stdin, sys.getdefaultencoding()))
+ for ln in stdin:
+ sprc.stdin.write(bytes(ln + '\n', sys.getdefaultencoding()))
+ sprc.stdin.flush()
+ sprc.stdin.close()
rtn = []
with open(os.path.join(sf(conf.log_folder),