File: test

package info (click to toggle)
node-mocha 4.1.0%2Bds3-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,956 kB
  • sloc: makefile: 163; sh: 17
file content (14 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

sed_move_to_stderr() {
    sed  -e "/$1/w /dev/stderr" -e "/$1/d"
}

exec 5>&1
exec 3>&1
error_mocha=$( ( ( (make test-node) 2>&1 >&3 3>&- ; echo $? >&4)  | sed_move_to_stderr 'DeprecationWarning:' 2>&1 >&3 3>&- ) 4>&1 >&5)
exec 3>&-
exec 5>&-
test "X$error_mocha" = "X0"