Skip to content

Commit 0c9cf0b

Browse files
danieldkMekkCyber
andauthored
ci-test: do not try to use a cache directory (huggingface#292)
* ci-test: do not try to use a cache directory The CI tests should be stateless anyway. * skip error code 5 * Add comment about special handing of exit code 5 --------- Co-authored-by: medmekk <mohamed.mekkouri@huggingface.co>
1 parent a970746 commit 0c9cf0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/lib/build.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ rec {
320320
if [ -d ${extension.src}/tests ]; then
321321
unset LD_LIBRARY_PATH
322322
export PYTHONPATH=${extension}/${extension.variant}
323-
${testPython}/bin/python3 -m pytest ${extension.src}/tests -m kernels_ci
323+
# Accept exit code 5: no tests are selected
324+
${testPython}/bin/python3 -m pytest ${extension.src}/tests -m kernels_ci -p no:cacheprovider || test $? -eq 5
324325
fi
325326
'';
326327
};

0 commit comments

Comments
 (0)