From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 30 Sep 2016 21:56:03 -0400 Subject: [U-Boot] U-Boot DFU test and Ctrl+C In-Reply-To: <539db4b1-b324-a4d9-1330-1483e2b980c7@wwwdotorg.org> References: <20160927154633.GF4884@bill-the-cat> <20160928113230.308b5d6c@amdc2363> <539db4b1-b324-a4d9-1330-1483e2b980c7@wwwdotorg.org> Message-ID: <20161001015603.GG4884@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Sep 28, 2016 at 11:49:52AM -0600, Stephen Warren wrote: > On 09/28/2016 03:32 AM, Lukasz Majewski wrote: > >Hi Tom, > > > >>Hey guys, > >> > >>As I use the DFU tests more and more, I keep hitting what I'm pretty > >>sure is a false failure in the tests. Sometimes the tests fail at: > >>> u_boot_console.wait_for('Ctrl+C to exit ...') > >> > >>and the last bit of the console log is: > >>Starting download: > >>[#################################################################] > >>finished! unable to read DFU status #File System is consistent > >>file found, deleting > >>update journal finished > >>File System is consistent > >>update journal finished > >>65 bytes written in 12380 ms (0 Bytes/s) > >>=> > >> > >>So perhaps we should make the test look for the prompt itself rather > >>than 'Ctrl+C' ? Thanks! > > > >As fair as I remember, dfu-util provides and u-boot's dfu supports -e > >switch behavior. This switch causes the dfu u-boot command to go > >directly to u-boot prompt. > > > >Tom, I suppose that this is what you would need. > >Just add -e to your host's dfu-util command. > > Using -e is the opposite of what Tom wants. The test/py script > expects the dfu command to continue running after an > upload/download, since that's the default behaviour. Right. It sounds like DWC3 might have an intermittent issue I need to find some time to try and debug, or talk someone else into debugging :) -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: