qemu-devel
[Top][All Lists]
Advanced

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

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


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH v4 03/10] tests: Add vm test lib
Date: Tue, 29 Aug 2017 10:10:48 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hi Fam, Kamil,

On 08/28/2017 02:47 PM, Fam Zheng wrote:
[...]
+        subprocess.check_call([tar_cmd,
+                               "--exclude-vcs",
+                               "--exclude=tests/vm/*.img",
+                               "--exclude=tests/vm/*.img.*",
+                               "--exclude=*.d",
+                               "--exclude=*.o",
+                               "--exclude=docker-src.*",
+                               "-cf", tarfile, '.'], cwd=data_dir,

I'm not happy with this command :/
My distrib uses tmpfs for /tmp and suddently the whole X window became irresponsive until this script failing after filling 8G of /tmp and swap:

...
DEBUG:root:Creating archive /tmp/qemu-vm-F7CY9O/data-3a52c.tar for data dir: .
tar: /tmp/qemu-vm-F7CY9O/data-3a52c.tar: Wrote only 4096 of 10240 bytes
tar: Error is not recoverable: exiting now
Failed to prepare guest environment

Then I figured out my workdir is full of testing stuff, debug images, firmwares, coredumps, etc.

I'll think of another way.

Using:

(git ls-files; git submodule foreach --recursive "git ls-files | sed s_^_\$sm_path/_" | sed /^Entering/d) > files.txt

and:

        subprocess.check_call([tar_cmd,
                               "-cf", tarfile,
                               "-v" if self.debug else "",
                               "-T", "files.txt"], cwd=data_dir,
                              stdin=self._devnull, stdout=self._stdout)

Current /master and submodules generated tarball is ~305MB uncompressed.

Kamil do you mind testing this command on NetBSD?

(obviously 'files.txt' goes in tmpdir).

Regards,

Phil.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]