summaryrefslogtreecommitdiff
path: root/test-cli/test/flashers/flasher_sopa0000.py
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test/flashers/flasher_sopa0000.py')
-rw-r--r--test-cli/test/flashers/flasher_sopa0000.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-cli/test/flashers/flasher_sopa0000.py b/test-cli/test/flashers/flasher_sopa0000.py
new file mode 100644
index 0000000..818be91
--- /dev/null
+++ b/test-cli/test/flashers/flasher_sopa0000.py
@@ -0,0 +1,13 @@
+from test.helpers.syscmd import SysCommand
+
+
+def flash_sopa0000():
+ print("Sart programming Nand memory...")
+ str_cmd = "/usr/bin/igep-flash --skip-nandtest --image /opt/firmware/demo-ti-image-*-*.tar* >/dev/null 2>&1"
+ sync_command = SysCommand("sync_command", str_cmd)
+ if sync_command.execute() != 0:
+ print("Flasher: Could not complete flashing task.")
+ return 1
+ else:
+ print("Flasher: NAND memory flashed succesfully.")
+ return 0