We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 037ed7a commit 4c06db1Copy full SHA for 4c06db1
1 file changed
e2e/coverage-bin
@@ -1,11 +1,15 @@
1
-#!/bin/sh
+#!/bin/bash
2
3
# This script is a proxy that injects the required test flags and strips out test output
4
# It allows us to use a coverage-enabled binary for e2e tests
5
6
-../_build/docker-app.cov \
7
- -test.coverprofile=../_build/cov/$(uuidgen).out \
8
- $* \
+BUILD_DIR=${BASH_SOURCE%/*}/../_build
+
+$BUILD_DIR/docker-app.cov \
9
+ -test.coverprofile=$BUILD_DIR/cov/$(uuidgen).out \
10
+ "$@" \
11
| grep -vE '^PASS$' \
12
| grep -vE '^coverage: [0-9]+\.[0-9]+% of statements in .+$' \
13
| grep -v '^=== RUN TestRunMain$'
14
15
+exit ${PIPESTATUS[0]}
0 commit comments