From d00964483e8b1674832e7b5e5a44ebaaea210282 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 21 May 2023 20:54:37 +0200 Subject: [PATCH] fix tests --- tests-ng/compare.sh | 17 +---------------- tests-ng/update.sh | 17 +---------------- tests.sh | 2 -- 3 files changed, 2 insertions(+), 34 deletions(-) diff --git a/tests-ng/compare.sh b/tests-ng/compare.sh index 32e383c..c7a68b3 100755 --- a/tests-ng/compare.sh +++ b/tests-ng/compare.sh @@ -2,30 +2,15 @@ # author: deadc0de6 (https://github.com/deadc0de6) # Copyright (c) 2023, deadc0de6 -# exit on first error set -e - -# get current path -rl="readlink -f" -if ! ${rl} "${0}" >/dev/null 2>&1; then - rl="realpath" - - if ! command -v ${rl}; then - echo "\"${rl}\" not found !" && exit 1 - fi -fi -cur=$(dirname "$(${rl} "${0}")") - -# pivot +cur=$(cd "$(dirname "${0}")" && pwd) prev="${cur}/.." cd "${prev}" # coverage -#export PYTHONPATH=".:${PYTHONPATH}" bin="python3 -m catcli.catcli" if command -v coverage 2>/dev/null; then bin="coverage run -p --source=catcli -m catcli.catcli" - #bin="coverage run -p --source=${prev}/catcli -m catcli.catcli" fi echo "current dir: $(pwd)" diff --git a/tests-ng/update.sh b/tests-ng/update.sh index 26964bf..8a93892 100755 --- a/tests-ng/update.sh +++ b/tests-ng/update.sh @@ -2,30 +2,15 @@ # author: deadc0de6 (https://github.com/deadc0de6) # Copyright (c) 2021, deadc0de6 -# exit on first error set -e - -# get current path -rl="readlink -f" -if ! ${rl} "${0}" >/dev/null 2>&1; then - rl="realpath" - - if ! command -v ${rl}; then - echo "\"${rl}\" not found !" && exit 1 - fi -fi -cur=$(dirname "$(${rl} "${0}")") - -# pivot +cur=$(cd "$(dirname "${0}")" && pwd) prev="${cur}/.." cd "${prev}" # coverage -#export PYTHONPATH=".:${PYTHONPATH}" bin="python3 -m catcli.catcli" if command -v coverage 2>/dev/null; then bin="coverage run -p --source=catcli -m catcli.catcli" - #bin="coverage run -p --source=${prev}/catcli -m catcli.catcli" fi echo "current dir: $(pwd)" diff --git a/tests.sh b/tests.sh index 31bffe3..366d84e 100755 --- a/tests.sh +++ b/tests.sh @@ -45,8 +45,6 @@ pylint -sn \ --disable=R0022 \ catcli/ - - # R0801: Similar lines in 2 files # W0212: Access to a protected member # R0914: Too many local variables