Skip to content
Snippets Groups Projects
Commit c07970f7 authored by Ximin Luo's avatar Ximin Luo
Browse files

tests/comparators/test_fsimage: put the 400MB cache in a more obvious place

parent 26a4360e
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
import pytest
import os
from diffoscope.config import Config
from diffoscope.comparators.missing_file import MissingFile
......@@ -35,6 +36,9 @@ def guestfs_working():
except ImportError:
return False
g = guestfs.GuestFS (python_return_dict=True)
cachedir = os.path.join(os.getcwd(), "cache")
os.makedirs(cachedir, exist_ok=True)
g.set_cachedir(cachedir)
g.add_drive_opts("/dev/null", format="raw", readonly=1)
try:
g.launch()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment