zdtm/static/binfmt_misc: run cleanup hook before restore

In ns flavor for instance the binfmt_misc is not c/r-ed, but without
this cleanup the test will not detect that as it would inherit correct
unchanged binfmt_misc step which was there on dump.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
Pavel Tikhomirov 2026-02-03 20:52:04 +01:00 committed by Andrei Vagin
parent 577c9a0f2f
commit 838a59087d

View file

@ -1,6 +1,6 @@
#!/bin/bash
[ "$1" == "--clean" ] || exit 0
[ "$1" == "--clean" ] || [ "$1" == "--pre-restore" ] || exit 0
name=$(basename -s .hook $0).test