1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +00:00
Files
dotdrop/scripts/check-unittests.sh
deadc0de6 ddd60a38ac coverage
2023-02-06 17:30:29 +01:00

23 lines
441 B
Bash
Executable File
Vendored

#!/bin/sh
# author: deadc0de6 (https://github.com/deadc0de6)
# Copyright (c) 2023, deadc0de6
# stop on first error
set -e
rl="readlink -f"
if ! ${rl} "${0}" >/dev/null 2>&1; then
rl="realpath"
if ! hash ${rl}; then
echo "\"${rl}\" not found!" && exit 1
fi
fi
cur=$(dirname "$(${rl} "${0}")")
if [ -n "${DOTDROP_WORKERS}" ]; then
unset DOTDROP_WORKERS
echo "DISABLE workers for unittests"
fi
coverage run -p -m pytest tests