From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 7 Mar 2014 17:27:59 -0500 Subject: [U-Boot] unit-test: make "test -e" test independent of $CWD In-Reply-To: <1393737480-29073-1-git-send-email-swarren@wwwdotorg.org> References: <1393737480-29073-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20140307222759.GK16805@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 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 > Signed-off-by: Stephen Warren 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: