tests/test-check-jshint.t
author Yuya Nishihara <yuya@tcha.org>
Mon, 20 Jul 2020 20:31:24 +0900
branchstable
changeset 45185 a17454a189d1
parent 35605 45a816361926
permissions -rw-r--r--
chgserver: discard buffered output before restoring fds (issue6207) On Python 3, flush() appears not discarding buffered data on EPIPE, and the buffered data will be carried over to the restored stdout.

#require test-repo jshint hg10

  $ . "$TESTDIR/helpers-testrepo.sh"

run jshint on all tracked files ending in .js except vendored dependencies

  $ cd "`dirname "$TESTDIR"`"

  $ testrepohg locate 'set:**.js' \
  > 2>/dev/null \
  > | xargs jshint