def create_libcurve_dir_with_normal_user():
    rc = base_operate.create_libcurve_dir(config.dir_path, config.user_name)
    if rc != 0:
        logger.error("create libcurve dir fail. rc = %s" % rc)
        return rc
        raise AssertionError
    else:
        return rc
def create_libcurve_dir_with_root_user_and_password():
    rc = base_operate.create_libcurve_dir(config.dir_path, config.root_name,
                                          config.root_password)
    if rc != 0:
        logger.error("create libcurve dir fail. rc = %s" % rc)
        return rc
        raise AssertionError
    else:
        return rc
def create_libcurve_dir_when_parent_is_exist():
    rc = base_operate.create_libcurve_dir(config.dir_path_with_parent,
                                          config.user_name)
    if rc != 0:
        logger.error("create libcurve dir fail. rc = %s" % rc)
        return rc
        raise AssertionError
    else:
        return rc
def create_libcurve_dir_with_no_user():
    rc = base_operate.create_libcurve_dir(config.dir_path, "",
                                          config.root_password)
    logger.info("create libcurve dir with no user.")
    return rc
def create_libcurve_dir_when_parent_is_not_exist():
    rc = base_operate.create_libcurve_dir(config.dir_path_no_parent,
                                          config.user_name)
    return rc