From d5fc5dbb41a2ef47ecc0502920be300730be14b0 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Sun, 6 Nov 2016 12:34:00 +0300 Subject: [PATCH] zdtm.py: run --clean hook on test failure It seems to me most of the clean hooks (used by cgroup*, macvlan* cr_veth* and mnt_tracefs* were all designed to be run to clean up after the test, no matter whether it failed or succeeded. Let's always run them, so Andrei doesn't hate me :D travis-ci: success for zdtm.py: run --clean hook on test failure Signed-off-by: Tycho Andersen CC: Andrei Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/zdtm.py b/test/zdtm.py index 9449d90eb..b2d6b7aa4 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -1265,6 +1265,7 @@ def do_run_test(tname, tdesc, flavs, opts): print_sep("Test %s FAIL at %s" % (tname, e.step), '#') t.print_output() t.kill() + try_run_hook(t, ["--clean"]) if cr_api.logs(): add_to_report(cr_api.logs(), tname.replace('/', '_') + "_" + f + "/images") if opts['keep_img'] == 'never':