[dts] [PATCH V1 1/3] framework: fix the issues of dts rerun error and writing error
Tu, Lijuan
lijuan.tu at intel.com
Thu Jan 16 09:58:17 CET 2020
Applied the series
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of xinfengx
> Sent: Thursday, January 16, 2020 6:33 AM
> To: dts at dpdk.org
> Cc: Zhao, XinfengX <xinfengx.zhao at intel.com>
> Subject: [dts] [PATCH V1 1/3] framework: fix the issues of dts rerun error and
> writing error
>
> Signed-off-by: xinfengx <xinfengx.zhao at 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
More information about the dts
mailing list