[U-Boot] unit-test: make "test -e" test independent of $CWD

Tom Rini trini at ti.com
Fri Mar 7 23:27:59 CET 2014


On Sat, Mar 01, 2014 at 10:18:00PM -0700, Stephen Warren wrote:

> The unit-test for hush's "test -e" currently relies upon being run in
> the U-Boot build directory, because it tests for the existence of a file
> that exists in that directory.
> 
> Fix this by explicitly creating the file we use for the existence test,
> and deleting it afterwards so that multiple successive unit-test
> invocations succeed. This required adding an os.c function to erase
> files.
> 
> Reported-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140307/8301a613/attachment.pgp>


More information about the U-Boot mailing list