Re: [PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-02-04 Thread Philippe Mathieu-Daudé
On Tue, Feb 4, 2020 at 2:34 PM Liam Merwick wrote: > On 31/01/2020 15:02, Liam Merwick wrote: > > [... deleted ...] > > >> > > > > +:returns: path of the extracted file > > +""" > > +cwd = os.getcwd() > > +os.chdir(self.workdir) > > +

Re: [PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-02-04 Thread Liam Merwick
On 31/01/2020 15:02, Liam Merwick wrote: [... deleted ...] +    :returns: path of the extracted file +    """ +    cwd = os.getcwd() +    os.chdir(self.workdir) +    process.run("rpm2cpio %s | cpio -id %s" % (rpm, path), shell=True) +    os.chdir(cwd) +    retur

Re: [PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-01-31 Thread Liam Merwick
On 30/01/2020 19:19, Wainer dos Santos Moschetta wrote: On 1/30/20 1:34 PM, Liam Merwick wrote: On 30/01/2020 12:05, Stefano Garzarella wrote: On Mon, Jan 27, 2020 at 04:36:33PM +, Liam Merwick wrote: Add a method to extract a specified file from an RPM to the test's working directory and

Re: [PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-01-30 Thread Philippe Mathieu-Daudé
On 1/30/20 8:19 PM, Wainer dos Santos Moschetta wrote: On 1/30/20 1:34 PM, Liam Merwick wrote: On 30/01/2020 12:05, Stefano Garzarella wrote: On Mon, Jan 27, 2020 at 04:36:33PM +, Liam Merwick wrote: Add a method to extract a specified file from an RPM to the test's working directory and r

Re: [PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-01-30 Thread Wainer dos Santos Moschetta
On 1/30/20 1:34 PM, Liam Merwick wrote: On 30/01/2020 12:05, Stefano Garzarella wrote: On Mon, Jan 27, 2020 at 04:36:33PM +, Liam Merwick wrote: Add a method to extract a specified file from an RPM to the test's working directory and return the path to the extracted file. Signed-off-by:

Re: [PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-01-30 Thread Liam Merwick
On 30/01/2020 12:05, Stefano Garzarella wrote: On Mon, Jan 27, 2020 at 04:36:33PM +, Liam Merwick wrote: Add a method to extract a specified file from an RPM to the test's working directory and return the path to the extracted file. Signed-off-by: Liam Merwick --- tests/acceptance/boot_l

Re: [PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-01-30 Thread Stefano Garzarella
On Mon, Jan 27, 2020 at 04:36:33PM +, Liam Merwick wrote: > Add a method to extract a specified file from an RPM to the test's > working directory and return the path to the extracted file. > > Signed-off-by: Liam Merwick > --- > tests/acceptance/boot_linux_console.py | 14 ++ >

[PATCH 5/6] tests/boot_linux_console: add extract_from_rpm method

2020-01-27 Thread Liam Merwick
Add a method to extract a specified file from an RPM to the test's working directory and return the path to the extracted file. Signed-off-by: Liam Merwick --- tests/acceptance/boot_linux_console.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tests/acceptance/boot_linux_c