• Pavel Emelyanov's avatar
    zdtm: Introduce per-test hooks · cf8b7c8f
    Pavel Emelyanov authored
    This is inspired by two problems we have with cgroup* tests.
    
    1. Tests cannot easily clean after themselves -- one cannot
       remove a cg dir with tasks in it and the root task of
       a test is in a cgroup it tries to remove.
    
    2. After dump old cgroup dirs are remained after the test,
       while criu should restore them (this is what we write
       tests for).
    
    The proposal is to introduce per-test hooks, for now two of
    them: --pre-restore and --clean. For cgroup tests both hooks
    will remove the created directories.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    cf8b7c8f
zdtm.sh 18.2 KB