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 Alexander Mikhalitsyn
parent de732ded15
commit 20c724802d
No known key found for this signature in database
GPG key ID: B1F47F5CB05B4FA3

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