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