Skip to content

Commit

Permalink
Ignore errors when removing workspace dir in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
katre committed Nov 10, 2020
1 parent abc4984 commit e3017d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/shell/testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ workspaces=()
# Set-up a new, clean workspace with only the tools installed.
function create_new_workspace() {
new_workspace_dir=${1:-$(mktemp -d ${TEST_TMPDIR}/workspace.XXXXXXXX)}
# try ignoring output here.
try_with_timeout rm -fr ${new_workspace_dir}
mkdir -p ${new_workspace_dir}
workspaces+=(${new_workspace_dir})
Expand Down

0 comments on commit e3017d6

Please sign in to comment.