Poll qtile exit code in tests