test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 1/3] framework: fix the issues of dts rerun error and writing error
@ 2020-01-15 22:32 xinfengx
  2020-01-15 22:32 ` [dts] [PATCH V1 2/3] nics: fix indentation error xinfengx
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: xinfengx @ 2020-01-15 22:32 UTC (permalink / raw)
  To: dts; +Cc: xinfengx

Signed-off-by: xinfengx <xinfengx.zhao@intel.com>
---
 framework/dts.py          | 1 +
 framework/qemu_libvirt.py | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/framework/dts.py b/framework/dts.py
index 5941b37..afe44b4 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -523,6 +523,7 @@ def run_all(config_file, pkgName, git, patch, skip_setup,
     if verbose is True:
         logger.set_verbose()
 
+    re_run = int(re_run)
     if re_run < 0:
         re_run = 0
 
diff --git a/framework/qemu_libvirt.py b/framework/qemu_libvirt.py
index 5e34590..e0aeb6c 100644
--- a/framework/qemu_libvirt.py
+++ b/framework/qemu_libvirt.py
@@ -788,11 +788,11 @@ class LibvirtKvm(VirtBase):
         if os.path.exists(xml_file):
             os.remove(xml_file)
         self.root.write(xml_file)
-        with open(xml_file, 'rb') as fp:
+        with open(xml_file, 'r') as fp:
             content = fp.read()
         doc = minidom.parseString(content)
         vm_content = doc.toprettyxml(indent='    ')
-        with open(xml_file, 'wb') as fp:
+        with open(xml_file, 'w') as fp:
             fp.write(vm_content)
         self.host_session.copy_file_to(xml_file)
         time.sleep(2)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-16  8:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15 22:32 [dts] [PATCH V1 1/3] framework: fix the issues of dts rerun error and writing error xinfengx
2020-01-15 22:32 ` [dts] [PATCH V1 2/3] nics: fix indentation error xinfengx
2020-01-15 22:33 ` [dts] [PATCH V1 3/3] tests: fix the statement errors that not supported by python3 xinfengx
2020-01-16  8:58 ` [dts] [PATCH V1 1/3] framework: fix the issues of dts rerun error and writing error Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).