Welcome to mirror list, hosted at ThFree Co, Russian Federation.

detect-external-tests.sh « _support « workhorse - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 865bd1447e1b2c975416a6b5ca7df4ff33657a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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)
    }
  }
'