From 51833d68ffd5b53c3a24cf747fcd66af321ce6f0 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sat, 30 Apr 2022 03:37:58 +0100 Subject: [PATCH] fix coverage path --- tests/pre-commit.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pre-commit.ps1 b/tests/pre-commit.ps1 index 7a8e79f..53f5bbd 100644 --- a/tests/pre-commit.ps1 +++ b/tests/pre-commit.ps1 @@ -3,7 +3,7 @@ Function RunTests { $run_tests = "pytest -v --capture=tee-sys --junitxml=./tests/.coverage.xml" $match_pattern = "^=|^\s*$|^Running|^Using|^plugins|^collecting|^tests" - if ( Test-Path "./$coverage" ) { Clear-Content $coverage } + if ( Test-Path $coverage ) { Clear-Content $coverage } ForEach ($line in $(Invoke-Expression $run_tests)) { If ( $line -Match $match_pattern ) {