Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,28 @@ else
fi

mkdir -p "$SCRIPT_DIR/build/tmp"
TMPDIR="$SCRIPT_DIR/build/tmp" test/libs/bats-core/bin/bats "$@"
{
TMPDIR="$SCRIPT_DIR/build/tmp" \
test/libs/bats-core/bin/bats "$@" \
4>&1 1>&2 2>&4 |
awk '
BEGIN {
duplicate_test_names = ""
}

{
print
}

/duplicate test name/ {
duplicate_test_names = duplicate_test_names "\n\t" $0
}

END {
if (length(duplicate_test_names)) {
print "\nERROR: duplicate test name(s) found:" duplicate_test_names
exit 1
}
}
'
} 4>&1 1>&2 2>&4
2 changes: 1 addition & 1 deletion test/empty-dirs.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ load 'common'
assert_equal "$(git -C git-repo show branch-a:dir-a/.gitignore)" '/ignore-a'
}

@test 'branching with svn-ignore, svn-branches and empty-dirs parameter should not replace filled .gitignore files with empty ones' {
@test 'branching with svn-ignore, svn-branches and empty-dirs parameter should not replace filled .gitignore files with empty ones (nested)' {
svn mkdir project-a
cd project-a
svn mkdir --parents trunk/dir-a
Expand Down