def delete_libcurve_dir_with_normal_user(): rc = base_operate.delete_libcurve_dir(config.dir_path, config.user_name) if rc < 0: logger.error("delete libcurve dir fail. rc = %s" % rc) return rc raise AssertionError else: return rc
def delete_libcurve_dir_with_root_user_and_no_password(): rc = base_operate.delete_libcurve_dir(config.dir_path, config.root_name, "") if rc < 0: logger.info("delete libcurve dir fail. rc = %s" % rc) return rc #raise AssertionError else: return rc
def delete_libcurve_dir_with_error_user_and_root_password(): rc = base_operate.delete_libcurve_dir(config.dir_path, "test", config.root_password) logger.info("delete libcurve dir with error user and root password.") return rc
def delete_libcurve_dir_with_error_user(): rc = base_operate.delete_libcurve_dir(config.dir_path, "test") logger.info("delete libcurve dir with error user.") return rc
def delete_libcurve_dir_with_no_user(): rc = base_operate.delete_libcurve_dir(config.dir_path, "") logger.info("delete libcurve dir with no user.") return rc