Skip to content

Commit 5dfb9ce

Browse files
committed
Fix overwriting of existing log files
1 parent ab70936 commit 5dfb9ce

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tools/ci/circle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,17 +265,13 @@ run_tests() {
265265
local log_file
266266
local path
267267
local slug
268-
local dir
269268

270269
echo 'Running tests...' >&2
271270
for test in $(echo "$1"); do
272271
echo "Running test: ${test}" >&2
273272

274-
# Extract the test directory:
275-
dir=$(dirname ${test})
276-
277-
# Remove the base source code directory path from the test directory path (using POSIX shell variable expansion):
278-
path="${dir#${base_dir}/}"
273+
# Remove the base source code directory path from the test path (using POSIX shell variable expansion):
274+
path="${test#${base_dir}/}"
279275

280276
# Slugify the path (basic algorithm):
281277
slug="$(echo ${path} | sed -e 's/[^[:alnum:]]/_/g' | tr -s '-' | tr A-Z a-z)"

0 commit comments

Comments
 (0)