diff --git a/include/neuron/msg.h b/include/neuron/msg.h index fa121d73..2ed2e040 100644 --- a/include/neuron/msg.h +++ b/include/neuron/msg.h @@ -906,6 +906,7 @@ inline static void neu_msg_exchange(neu_reqresp_head_t *header) typedef struct { char driver[NEU_NODE_NAME_LEN]; char path[128]; + bool del_flag; char prg_str_param1[128]; char prg_str_param2[128]; char prg_str_param3[128]; diff --git a/tests/ft/neuron/api.py b/tests/ft/neuron/api.py index 1a687070..8def8003 100644 --- a/tests/ft/neuron/api.py +++ b/tests/ft/neuron/api.py @@ -295,8 +295,8 @@ def get_version(): return requests.get(url=config.BASE_URL + "/api/v2/version", headers={"Authorization": config.default_jwt}) -def prgfile_upload(driver, path, params): - return requests.post(url=config.BASE_URL + "/api/v2/prgfile", headers={"Authorization": config.default_jwt}, json={"driver": driver, "path": path, "parameters": params}) +def prgfile_upload(driver, path, del_flag, params): + return requests.post(url=config.BASE_URL + "/api/v2/prgfile", headers={"Authorization": config.default_jwt}, json={"driver": driver, "path": path, "del_flag": del_flag, "parameters": params}) def prgfile_process(driver):