nixos.tests.usbguard: state_dir is now of type pathlib.Path

Changed files
+1 -1
nixos
tests
+1 -1
nixos/tests/usbguard.nix
···
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