def xtf_runner_exit_status(state):
    """ Convert a xtf-runner exit code to a test result. """
    return { 0: "SUCCESS",
             1: "sys.exit 1",
             2: "sys.exit 2",
             3: "SKIP",
             4: "ERROR",
             5: "FAILURE",
             6: "CRASH",
    }[state]