From d4020f0bce8c7841879736cd00ec64d617111c80 Mon Sep 17 00:00:00 2001 From: Hector Fernandez Date: Thu, 23 Apr 2020 14:14:02 +0200 Subject: Modified nand memory flasher --- test-cli/test_main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test-cli/test_main.py') diff --git a/test-cli/test_main.py b/test-cli/test_main.py index 23250ca..3034e77 100644 --- a/test-cli/test_main.py +++ b/test-cli/test_main.py @@ -156,10 +156,11 @@ def main(): # flash non-volatile memory resultmemory = 0 - if "image" in varlist and len(varlist["image"]) > 0: - resultmemory = flash_memory(varlist["image"]) + if ("flashimagepath" in varlist and len(varlist["flashimagepath"]) > 0: + resultmemory = flash_memory(varlist["flashimagepath"]) psdbObj.create_task_result(globalVar.taskid_ctl, "FLASHMEMORY", - "TASK_OK" if resultmemory == 0 else "TASK_FAIL", varlist["image"]) + "TASK_OK" if resultmemory == 0 else "TASK_FAIL", + varlist["flashimagepath"]) # update status with the result if resulteeprom == 0 and resultmemory == 0: -- cgit v1.1