test: Rewrite disabling of test machine
test: Rewrite disabling of test machine

`m2 = None` triggers a CodeQL "Unused local variable" note.

cockpit-project/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,cockpit-project/cockpit