diff options
author | Hector Fernandez <hector@iatec.biz> | 2020-03-17 18:27:59 +0100 |
---|---|---|
committer | Hector Fernandez <hector@iatec.biz> | 2020-03-19 21:31:03 +0100 |
commit | f013d0a76976a52fce979036df404826dcbf385b (patch) | |
tree | 63ad0c65b36f5bc9114d900ebbed1215a85b3bf1 /test-cli/test_main.py | |
parent | a85534544fad3c51d8af8d65e7fde6cb5d07978b (diff) | |
download | board-f013d0a76976a52fce979036df404826dcbf385b.zip board-f013d0a76976a52fce979036df404826dcbf385b.tar.gz board-f013d0a76976a52fce979036df404826dcbf385b.tar.bz2 |
Added return values after flashing, to be saved in the DB.
Diffstat (limited to 'test-cli/test_main.py')
-rw-r--r-- | test-cli/test_main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test-cli/test_main.py b/test-cli/test_main.py index 37207cc..ddd62aa 100644 --- a/test-cli/test_main.py +++ b/test-cli/test_main.py @@ -142,9 +142,9 @@ def main(): resulteeprom = 0 if "eeprompath" in varlist and len(varlist["eeprompath"]) > 0: mac0 = psdbObj.get_board_macaddr(globalVar.g_uuid) - resulteeprom = flash_eeprom(varlist["eeprompath"], globalVar.g_uuid, mac0) + resulteeprom, eepromdata = flash_eeprom(varlist["eeprompath"], globalVar.g_uuid, mac0) psdbObj.create_task_result(globalVar.taskid_ctl, "FLASHEEPROM", - "TASK_OK" if resulteeprom == 0 else "TASK_FAIL", varlist["eeprompath"]) + "TASK_OK" if resulteeprom == 0 else "TASK_FAIL", eepromdata) # flash non-volatile memory resultmemory = 0 |