File: check-no-only.sh

package info (click to toggle)
dygraphs 2.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,340 kB
  • sloc: javascript: 24,842; sh: 800; python: 581; makefile: 45
file content (10 lines) | stat: -rwxr-xr-x 262 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/mksh
# Checks that no ".only" has made it into tests. This should never be committed,
# since it will disable the vast majority of tests.

if grep -R '\.only(' auto_tests/tests; then
  echo 'Remove .only from tests before committing.'
  exit 1
fi

exit 0