debian-mirror-gitlab/workhorse/_support/detect-external-tests.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
298 B
Bash
Raw Normal View History

2023-03-17 16:20:25 +05:30
#!/bin/sh
go list -f '{{join .XTestGoFiles "\n"}}' ./... | awk '
{ print }
END {
if(NR>0) {
print "Please avoid using external test packages (package foobar_test) in Workhorse."
print "See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/107373."
exit(1)
}
}
'