diff options
author | Hector Fernandez <hector@iatec.biz> | 2020-06-17 09:44:56 +0200 |
---|---|---|
committer | Hector Fernandez <hector@iatec.biz> | 2020-06-17 09:44:56 +0200 |
commit | 09b3bb38fc7305c9b47c29bc90ebc9c636827307 (patch) | |
tree | a793c8f232031183960178d2a18fcde4baf3348f /test-cli/test/tasks/flashmemory.py | |
parent | 0dd2613b88d937e71b274d68924088b1bad65de4 (diff) | |
download | board-09b3bb38fc7305c9b47c29bc90ebc9c636827307.zip board-09b3bb38fc7305c9b47c29bc90ebc9c636827307.tar.gz board-09b3bb38fc7305c9b47c29bc90ebc9c636827307.tar.bz2 |
SOPA0000: Added support for saving results (strings or files) in the DB. It also saves a final DMESG file.
Diffstat (limited to 'test-cli/test/tasks/flashmemory.py')
-rw-r--r-- | test-cli/test/tasks/flashmemory.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-cli/test/tasks/flashmemory.py b/test-cli/test/tasks/flashmemory.py new file mode 100644 index 0000000..3be56d7 --- /dev/null +++ b/test-cli/test/tasks/flashmemory.py @@ -0,0 +1,12 @@ +import sh + + +def flash_memory(imagepath): + print("Start programming Nand memory...") + p = sh.bash("/usr/bin/igep-flash", "--skip-nandtest", "--image", imagepath) + if p.exit_code != 0: + print("Flasher: Could not complete flashing task.") + return 1 + else: + print("Flasher: NAND memory flashed succesfully.") + return 0 |