mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-02-16 18:47:21 +00:00
16 lines
296 B
Plaintext
16 lines
296 B
Plaintext
|
#!/bin/bash
|
||
|
# This script wraps the integration test binary so it produces concatenated
|
||
|
# test output.
|
||
|
|
||
|
test_binary=$1
|
||
|
shift
|
||
|
output_cov=$1
|
||
|
shift
|
||
|
|
||
|
echo "mode: count" > $output_cov
|
||
|
|
||
|
test_cov=$(mktemp)
|
||
|
$test_binary -test.coverprofile=$test_cov $@
|
||
|
tail -n +2 $test_cov >> $output_cov
|
||
|
rm -f $test_cov
|