]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: manager: create required directories when unit testing
authorVasek Sraier <git@vakabus.cz>
Sun, 19 Mar 2023 22:30:57 +0000 (23:30 +0100)
committerVasek Sraier <git@vakabus.cz>
Tue, 28 Mar 2023 13:24:22 +0000 (15:24 +0200)
manager/.gitlab-ci.yml

index 69b3b1cb516e2751160ac4e898e30d01ff7e9ded..668c858f2ff259ef9bf17ec2a2370071198de989 100644 (file)
@@ -23,6 +23,8 @@ lint:py3.10:
 .unit: &unit
   stage: check
   script:
+    # create required directories that are in default config, otherwise unit tests fail
+    - mkdir -p /var/cache/knot-resolver
     - poe test
     # the following command makes sure that the source root of the coverage file is at $gitroot
     - poetry run bash -c "cd ..; coverage combine manager/.coverage; coverage xml"