You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by kk...@apache.org on 2017/12/18 10:50:35 UTC
systemml git commit: strip for new line
Repository: systemml
Updated Branches:
refs/heads/master ce8ee96dc -> 660ba7630
strip for new line
Closes 706
Project: http://git-wip-us.apache.org/repos/asf/systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/660ba763
Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/660ba763
Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/660ba763
Branch: refs/heads/master
Commit: 660ba763074083cf63b876c42d4d00fe52620636
Parents: ce8ee96
Author: Krishna Kalyan <kr...@gmail.com>
Authored: Mon Dec 18 11:48:38 2017 +0100
Committer: Krishna Kalyan <kr...@gmail.com>
Committed: Mon Dec 18 11:48:38 2017 +0100
----------------------------------------------------------------------
scripts/perftest/python/utils_exec.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/systemml/blob/660ba763/scripts/perftest/python/utils_exec.py
----------------------------------------------------------------------
diff --git a/scripts/perftest/python/utils_exec.py b/scripts/perftest/python/utils_exec.py
index d51cf2d..04eea6a 100755
--- a/scripts/perftest/python/utils_exec.py
+++ b/scripts/perftest/python/utils_exec.py
@@ -101,7 +101,7 @@ def parse_hdfs_base(std_outs):
hdfs_uri = None
for line in std_outs:
if line.startswith('hdfs://'):
- hdfs_uri = line
+ hdfs_uri = line.strip()
if hdfs_uri is None:
sys.exit('HDFS URI not found')
return hdfs_uri
@@ -160,7 +160,7 @@ def parse_hdfs_paths(std_outs):
if 'No such file or directory' in i:
break
elif 'hdfs' in i:
- current_dir = i.split(' ')[-1]
+ current_dir = i.split(' ')[-1].strip()
hdfs_dir.append(current_dir)
return hdfs_dir