Skip to content

Commit 3bb078c

Browse files
committed
ci(check-fixtures): check also record skeletons for persistent IDs
Check also record skeletons with respect to the record ID and the DOI uniqueness. Closes #3667
1 parent 0fb2b8f commit 3bb078c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ check_fixtures () {
4040
find data/ -name "*.json" -exec jsonlint -q {} \;
4141

4242
# check record ID uniqueness:
43-
dupes=$(jq '.[].recid' data/records/*.json | sort | uniq -d)
43+
dupes=$(jq '.[].recid' data/{records,skeletons}/*.json | sort | uniq -d)
4444
if [ "x${dupes}" != "x" ]; then
4545
echo "[ERROR] Found duplicate record IDs:"
4646
echo "${dupes}"
4747
exit 1
4848
fi
4949

5050
# check DOI uniqueness:
51-
dupes=$(jq '.[].doi' data/records/*.json | sort | grep -v null | uniq -d)
51+
dupes=$(jq '.[].doi' data/{records,skeletons}/*.json | sort | grep -v null | uniq -d)
5252
if [ "x${dupes}" != "x" ]; then
5353
echo "[ERROR] Found duplicate record DOIs:"
5454
echo "${dupes}"

0 commit comments

Comments
 (0)