def save_log(log, url):
    if log is None:
        return
    dir = get_log_path(url)
    if not dir.exists():
        dir.makedirs()
    f = dir.child('consoleText')
    f.setContent(log)
def save_log(log, url):
    if log is None:
        return
    dir = get_log_path(url)
    if not dir.exists():
        dir.makedirs()
    f = dir.child('consoleText')
    f.setContent(log)
def save_test_report(data, url):
    # XXX: Duplication w/ save_log
    if data is None:
        return
    dir = get_log_path(url)
    if not dir.exists():
        dir.makedirs()
    f = dir.child('testReport')
    f.setContent(data)
def save_test_report(data, url):
    # XXX: Duplication w/ save_log
    if data is None:
        return
    dir = get_log_path(url)
    if not dir.exists():
        dir.makedirs()
    f = dir.child('testReport')
    f.setContent(data)