]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Remove image after measurement
authorKarel Kočí <cynerd@email.cz>
Mon, 14 Sep 2015 13:04:49 +0000 (15:04 +0200)
committerKarel Kočí <cynerd@email.cz>
Mon, 14 Sep 2015 13:04:49 +0000 (15:04 +0200)
Image should be removed after it was measured. Otherwise Linux images
are piling up in jobfolder.

scripts/loop.py

index f7b82bfffcc1257bc358813afe8941dd42bdeaac..355275c88d08186b1d04eaa57843d36f6cf78475 100755 (executable)
@@ -58,6 +58,7 @@ def measure(kernelimg, con):
        os.symlink(kernelimg, sf(conf.jobfolder_linux_image))
        boot.boot(con)
        print("Configuration '" + con.hash + "' measured.")
+       os.remove(sf(conf.build_folder) + '/' + kernelimg)
        __confs_prepared__.remove(con.hash)
 
 # Multithread #