From 2a9f8626b27a665db3048c4f1c904e9ec7cd79ad Mon Sep 17 00:00:00 2001 From: smilesun Date: Wed, 11 Dec 2024 16:28:57 +0100 Subject: [PATCH] fixture shell to remove zoutpu --- .github/workflows/ci.yml | 2 +- tests/utils_test.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86ca0b445..67e8dba88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install pytest pytest-cov pytest-shell + pip install pytest pytest-cov pytest-shell pytest-shell-utilities python setup.py install - name: Install Python Poetry run: | diff --git a/tests/utils_test.py b/tests/utils_test.py index a8dd04177..72a5dc09e 100644 --- a/tests/utils_test.py +++ b/tests/utils_test.py @@ -22,6 +22,8 @@ def utils_test_algo(argsstr="--help"): del exp torch.cuda.empty_cache() gc.collect() + ret = shell.run("rm", "-rf zoutput") + assert ret.returncode == 0 def assert_frame_not_equal(*args, **kwargs):