[PATCH] iozone postprocessing: Use path rather than file object printing failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Newer versions of gnuplot are not compatible with some
of the syntax on the command files generated for iozone
graph generation. Let's fix this, also when a problem
happens, use the command file path rather than the command
file object itself.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 client/tests/iozone/postprocessing.py |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/client/tests/iozone/postprocessing.py b/client/tests/iozone/postprocessing.py
index 3a77c83..27d0569 100755
--- a/client/tests/iozone/postprocessing.py
+++ b/client/tests/iozone/postprocessing.py
@@ -400,10 +400,10 @@ class IOzonePlotter(object):
             commands_file.write(commands)
             commands_file.close()
             try:
-                utils.run("%s %s" % (self.gnuplot, commands_path))
-            except error.CmdError, e:
-                logging.error("Problem plotting from commands file %s: %s",
-                              commands_file, str(e))
+                utils.system("%s %s" % (self.gnuplot, commands_path))
+            except error.CmdError:
+                logging.error("Problem plotting from commands file %s",
+                              commands_path)
 
 
     def plot_3d_graphs(self):
@@ -439,10 +439,10 @@ class IOzonePlotter(object):
             commands_file.write(commands)
             commands_file.close()
             try:
-                utils.run("%s %s" % (self.gnuplot, commands_path))
-            except error.CmdError, e:
-                logging.error("Problem plotting from commands file %s: %s",
-                              commands_file, str(e))
+                utils.system("%s %s" % (self.gnuplot, commands_path))
+            except error.CmdError:
+                logging.error("Problem plotting from commands file %s",
+                              commands_path)
 
 
     def plot_all(self):
-- 
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux