From af859d1df18517a77440b1e117f670dc7c9f68f6 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Tue, 21 Sep 2021 18:15:19 +0200 Subject: [PATCH] nixos.tests.usbguard: state_dir is now of type pathlib.Path --- nixos/tests/usbguard.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/usbguard.nix b/nixos/tests/usbguard.nix index cba905db44f3..bb707bdbf702 100644 --- a/nixos/tests/usbguard.nix +++ b/nixos/tests/usbguard.nix @@ -22,7 +22,7 @@ import ./make-test-python.nix ({ pkgs, ... }: { testScript = '' # create a blank disk image for our fake USB stick - with open(machine.state_dir + "/usbstick.img", "wb") as stick: + with open(machine.state_dir / "usbstick.img", "wb") as stick: stick.write(b"\x00" * (1024 * 1024)) # wait for machine to have started and the usbguard service to be up