From 75dc6ac5f5db724a9a773168651cebe7818557fe Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 4 May 2021 16:57:11 +0200 Subject: [PATCH] tests: create /var/lock if it does not exist --- tests/integration/fixtures/programs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration/fixtures/programs.py b/tests/integration/fixtures/programs.py index e389c011..eb085c21 100644 --- a/tests/integration/fixtures/programs.py +++ b/tests/integration/fixtures/programs.py @@ -207,6 +207,12 @@ protocols: files services: files """) + # Ensure lock directory also exists + try: + os.makedirs("/var/lock", mode=0o1777) + except FileExistsError: + pass + # Remove any config path = os.path.join(self.config.lldpd.confdir, "lldpd.conf") if os.path.isfile(path): -- 2.39.5