Add an assert_exec() helper to remove verbose copypasta.