Tony Asleson
2014-05-01 22:09:20 UTC
Signed-off-by: Tony Asleson <***@redhat.com>
---
test/webtest/test_automated.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/webtest/test_automated.py b/test/webtest/test_automated.py
index 23d9a88..332acfc 100755
--- a/test/webtest/test_automated.py
+++ b/test/webtest/test_automated.py
@@ -24,7 +24,9 @@ def run_test(cmdline, output_dir, sys_id, uri, password ):
(ec, out, error) = call(exec_array)
# Save the output to a temp dir
- fn = "%s/%s" % (output_dir, sys_id.replace(' ', '_'))
+ sys_id = sys_id.replace('/', '-')
+ sys_id = sys_id.replace(' ', '_')
+ fn = "%s/%s" % (output_dir, sys_id)
with open(fn + ".out", 'w') as so:
so.write(out)
@@ -69,4 +71,4 @@ if __name__ == '__main__':
p.join(1)
if not p.is_alive():
process_list.remove(p)
- break
\ No newline at end of file
+ break
---
test/webtest/test_automated.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/webtest/test_automated.py b/test/webtest/test_automated.py
index 23d9a88..332acfc 100755
--- a/test/webtest/test_automated.py
+++ b/test/webtest/test_automated.py
@@ -24,7 +24,9 @@ def run_test(cmdline, output_dir, sys_id, uri, password ):
(ec, out, error) = call(exec_array)
# Save the output to a temp dir
- fn = "%s/%s" % (output_dir, sys_id.replace(' ', '_'))
+ sys_id = sys_id.replace('/', '-')
+ sys_id = sys_id.replace(' ', '_')
+ fn = "%s/%s" % (output_dir, sys_id)
with open(fn + ".out", 'w') as so:
so.write(out)
@@ -69,4 +71,4 @@ if __name__ == '__main__':
p.join(1)
if not p.is_alive():
process_list.remove(p)
- break
\ No newline at end of file
+ break
--
1.8.2.1
1.8.2.1