From e099b8a96ec185763e7e922891439f214fe29312 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 25 Jan 2022 17:37:35 +0000 Subject: [PATCH] run-tests: explicitly specify --cached Seems to be required for newer versions of `git`. --- run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index cbc5f0b..ce3af55 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -20,7 +20,7 @@ else echo "Container detected, direct mode." fi -SCRIPTS="$(git ls-files --exclude='*.sh' --ignored | xargs echo)" +SCRIPTS="$(git ls-files --exclude='*.sh' --ignored --cached | xargs echo)" run_test "shellcheck -S ${SHELLCHECK_SEVERITY} ${SCRIPTS}" run_test "pytest -v --cov-report=term --cov=osbuild test/unit/"