Re: [Qemu-devel] [PATCH v3 03/10] tests: Add vm test lib

2017-08-28 Thread Fam Zheng
On Tue, 08/22 11:23, Philippe Mathieu-Daudé wrote: > On 08/22/2017 11:00 AM, Fam Zheng wrote: > > On Tue, 08/22 08:19, Philippe Mathieu-Daudé wrote: > > > > +def add_source_dir(self, data_dir): > > > > +name = "data-" + hashlib.sha1(data_dir).hexdigest()[:5] > > > > +tarfile = o

Re: [Qemu-devel] [PATCH v3 03/10] tests: Add vm test lib

2017-08-22 Thread Philippe Mathieu-Daudé
On 08/22/2017 11:00 AM, Fam Zheng wrote: On Tue, 08/22 08:19, Philippe Mathieu-Daudé wrote: +def add_source_dir(self, data_dir): +name = "data-" + hashlib.sha1(data_dir).hexdigest()[:5] +tarfile = os.path.join(self._tmpdir, name + ".tar") +logging.debug("Creating arch

Re: [Qemu-devel] [PATCH v3 03/10] tests: Add vm test lib

2017-08-22 Thread Fam Zheng
On Tue, 08/22 08:19, Philippe Mathieu-Daudé wrote: > > +def add_source_dir(self, data_dir): > > +name = "data-" + hashlib.sha1(data_dir).hexdigest()[:5] > > +tarfile = os.path.join(self._tmpdir, name + ".tar") > > +logging.debug("Creating archive %s for data dir: %s", ta

Re: [Qemu-devel] [PATCH v3 03/10] tests: Add vm test lib

2017-08-22 Thread Kamil Rytarowski
On 22.08.2017 13:19, Philippe Mathieu-Daudé wrote: > Hi Fam, > > On 08/22/2017 01:41 AM, Fam Zheng wrote: >> This is the common code to implement a "VM test" to >> >>1) Download and initialize a pre-defined VM that has necessary >>dependencies to build QEMU and SSH access. >> >>2) Arch

Re: [Qemu-devel] [PATCH v3 03/10] tests: Add vm test lib

2017-08-22 Thread Philippe Mathieu-Daudé
Hi Fam, On 08/22/2017 01:41 AM, Fam Zheng wrote: This is the common code to implement a "VM test" to 1) Download and initialize a pre-defined VM that has necessary dependencies to build QEMU and SSH access. 2) Archive $SRC_PATH to a .tar file. 3) Boot the VM, and pass the source t

[Qemu-devel] [PATCH v3 03/10] tests: Add vm test lib

2017-08-21 Thread Fam Zheng
This is the common code to implement a "VM test" to 1) Download and initialize a pre-defined VM that has necessary dependencies to build QEMU and SSH access. 2) Archive $SRC_PATH to a .tar file. 3) Boot the VM, and pass the source tar file to the guest. 4) SSH into the VM, untar the s