]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
tests: pcimock: Use the temporary directory as fake root
authorAndrea Bolognani <abologna@redhat.com>
Fri, 4 Dec 2015 09:05:56 +0000 (10:05 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 9 Dec 2015 14:22:58 +0000 (15:22 +0100)
commitf94398e72e7d41a9798a4f82aafdc698a1b639d3
treef1e27061c809c5a78bf2516d02a4e346c24bac59
parentb76d9366705d8ce605f3dc1bcebce388999c75ac
tests: pcimock: Use the temporary directory as fake root

We might need to mock files living outside PCI_SYSFS_PREFIX later on,
so it's better to treat the temporary directory we are passed via
the environment as the root of the fake filesystem and create
PCI_SYSFS_PREFIX inside it.

The environment variable name will be changed to reflect the new use
we're making of it in a later commit.
tests/virpcimock.c