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

tests: add more debugging output to test_fsimage

parent 19aa7247
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,10 @@ class FsImageContainer(Archive):
return None
self.g = guestfs.GuestFS (python_return_dict=True)
if "LIBGUESTFS_CACHEDIR" in os.environ:
# force a check that LIBGUESTFS_CACHEDIR exists. otherwise guestfs
# will fall back to /var/tmp, which we don't want
self.g.set_cachedir(os.getenv("LIBGUESTFS_CACHEDIR"))
self.g.add_drive_opts (self.source.path, format="raw", readonly=1)
try:
self.g.launch()
......
......@@ -39,6 +39,9 @@ def guestfs_tempdir():
g.set_cachedir(cachedir)
# set cachedir for the diffoscope.comparators.fsimage module as well
os.environ["LIBGUESTFS_CACHEDIR"] = cachedir
# see what went wrong in jenkins
os.environ["LIBGUESTFS_DEBUG"] = "1"
os.environ["LIBGUESTFS_TRACE"] = "1"
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