No way to purge cached disk images

Bug #526546 reported by andypiper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TestDrive
Fix Released
Low
Dustin Kirkland 
testdrive (Ubuntu)
Fix Released
Low
Dustin Kirkland 

Bug Description

Once testdrive has been run and a disk image has been chosen, zsync grabs a copy from the interwebs and caches it in USERHOME/.cache/testdrive

Over time or if multiple images are tested, this could cause a lot of disk space to be used.

testdrive should have a --purge option to remove all cached .iso images and save space (more granular disk image management could be implemented, but this would be a quick-and-dirty way to reclaim space)

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hmm, really? You'd want testdrive to purge your cache? I'd certainly think that you'd rather go to your cache directory and clean it out yourself. Testdrive already prints a nice, informative message about cleaning up your cache dir on exit...

                info("You may wish to clean up the cache directory...")
                print(" %s" % CACHE)
                run("ls -HhalF %s/iso %s/img" % (CACHE, CACHE))
                run("du -sh --apparent-size %s 2>/dev/null || du -sh %s" % (CACHE, CACHE))

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Oh, wait, that message was buried in a conditional.

I'll print that message unconditionally on exit.

For now, i would rather people purge their own ISO's and IMG's rather that testdrive doing it.

Changed in testdrive:
status: New → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Dustin Kirkland (kirkland)
importance: Wishlist → Low
Changed in testdrive (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Dustin Kirkland (kirkland)
Changed in testdrive:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package testdrive - 1.22-0ubuntu1

---------------
testdrive (1.22-0ubuntu1) lucid; urgency=low

  * testdrive:
    - fix run() return value checking, LP: #525438
    - more graceful error if ISO url 404's, LP: #491600
    - remove unnecessary warning when running VB, LP: #486884
    - offer to launch usb-creator after running VM, LP: #507537
    - add a -v|--version option, LP: #526548
    - unconditional print message about cleaning cache, LP: #526546
    - fix typo, LP: #526570
    - clean up output and prompt at the end of a desktop run
  * testdrive-select-iso, doc/testdrive-select-iso.1, debian/install,
    debian/rules:
    - move this file into testdrive, now that testdrive is in python too
  * testdriverc: quote sample CACHE value, LP: #524241
  * debian/control:
    - allow for non-free virtualbox in package dependencies, LP: #524704
    - drop suggests of testdrivegtk package, LP: #526490
 -- Dustin Kirkland <email address hidden> Thu, 18 Feb 2010 22:31:34 -0600

Changed in testdrive (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
andypiper (andypiperuk) wrote :

This is a great solution - thanks for the fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.