def METHOD_NAME(self):
    xunit_report_file = self.xunit_report_file
    sd_report_file = self.structured_report_file
    cmd = "./run_tests.sh $COMMON_STARTUP_ARGS --report_file %s" % shlex.quote(self.html_report_file)
    if xunit_report_file:
        cmd += " --xunit_report_file %s" % shlex.quote(xunit_report_file)
    if sd_report_file:
        cmd += " --structured_data_report_file %s" % shlex.quote(sd_report_file)
    if self.installed:
        cmd += " -installed"
    elif self.failed:
        sd = StructuredData(sd_report_file)
        tests = " ".join(sd.failed_ids)
        cmd += " %s" % tests
    else:
        cmd += " functional.test_toolbox"
    return cmd