mirror of
https://github.com/prymitive/karma
synced 2026-02-13 20:59:53 +00:00
fix(tests): fix go binary tests
This commit is contained in:
committed by
Łukasz Mierzwa
parent
9c5ffb6134
commit
87abaef69f
@@ -10,7 +10,7 @@ GOCACHE=$(go env GOCACHE)
|
||||
SIZE=`du -sxm ${GOCACHE} | awk '{print $1}'`
|
||||
echo "GOCACHE size: ${SIZE}MB"
|
||||
|
||||
if [ "${DRY_RUN}" == "" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ $SIZE -gt 4000 ]; then
|
||||
if [ "${DRY_RUN}" == "" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ $SIZE -gt 4200 ]; then
|
||||
echo "Pruning GOCACHE at ${GOCACHE}"
|
||||
find "${GOCACHE}" -type f -delete
|
||||
fi
|
||||
|
||||
@@ -28,8 +28,15 @@ LOG_CONFIG=false \
|
||||
./karma.test \
|
||||
-test.run '^TestRunMain$' \
|
||||
-test.coverprofile=profile.main.1 &
|
||||
PID=$!
|
||||
|
||||
sleep 5
|
||||
killall karma.test
|
||||
sleep 10
|
||||
kill $PID
|
||||
sleep 1
|
||||
|
||||
while kill -0 "$PID"; do
|
||||
echo "Waiting for $PID to finish"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
rm karma.test
|
||||
|
||||
Reference in New Issue
Block a user