Skip to content
Snippets Groups Projects
Commit cfd13e8d authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

unit-test: make "test -e" test independent of $CWD


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: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
parent fe9ca3d3
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment