summaryrefslogtreecommitdiff
path: root/test-cli/test_main.py
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-04-23 14:14:02 +0200
committerHector Fernandez <hector@iatec.biz>2020-04-23 14:14:02 +0200
commitd4020f0bce8c7841879736cd00ec64d617111c80 (patch)
treef7a7be97a629071c49fdbe107e09f4fb4ddb5985 /test-cli/test_main.py
parent6a680137694233008005415e22cf889b85baa292 (diff)
downloadboard-d4020f0bce8c7841879736cd00ec64d617111c80.zip
board-d4020f0bce8c7841879736cd00ec64d617111c80.tar.gz
board-d4020f0bce8c7841879736cd00ec64d617111c80.tar.bz2
Modified nand memory flasher
Diffstat (limited to 'test-cli/test_main.py')
-rw-r--r--test-cli/test_main.py7
1 files changed, 4 insertions, 3 deletions
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: