[PATCH 1/2] selftests: vm: refactor run_vmtests.sh to reduce boilerplate