857aee0 util: Add a utility for managing temporary files

Authored and Committed by lsedlar 7 years ago
    util: Add a utility for managing temporary files
    
    In multiple situations we need to create temporary files or directories
    that should not be preserved after compose is finished. Let's add
    context managers that ensure these get cleaned up.
    
    This fixes tests leaving garbage around in /tmp.
    
    Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
    
        
file modified
+2 -11
file modified
+20 -0
file modified
+13 -31
file modified
+22 -0