about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/usbguard.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/usbguard.nix')
-rw-r--r--nixpkgs/nixos/tests/usbguard.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/nixos/tests/usbguard.nix b/nixpkgs/nixos/tests/usbguard.nix
index cba905db44f3..bb707bdbf702 100644
--- a/nixpkgs/nixos/tests/usbguard.nix
+++ b/nixpkgs/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