Torsten Bögershausen <tbo...@web.de> writes:
>> So it finds whatever is before the first "-", which would be the test
>> number in "t0000-basic.sh" or similar, and then looks for duplicates.
> would it help to filter for numbered tests before sorting like this:
> sed 's/-.*//' | grep "[0-9][0-9][0-9][0-9]"| sort | uniq -d
If you are using sed you do not need grep. Just do that in a single
process, perhaps like
sed -ne 's|\(.*/\)*t\([0-9][0-9][0-9][0-9]\)-.*|\2|p'
But more importantly, what do we want "duplicate numbers" sanity
check to mean in this context? Is this other directory allowed to
have a numbered test that shares the same number as the main test
suite? Is uniqueness inside the contrib/remote-helpers/ directory
Do we envision that perhaps someday the contrib material becomes
mature enough and will want to migrate to the main part of the tree?
If that is the case, perhaps should the check complain that these
tests are not numbered, instead of ignoring?
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html