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

This commit is contained in:
Antoine Eiche 2021-09-21 18:15:19 +02:00 committed by David Arnold
parent 3f63e3ce65
commit af859d1df1

View File

@ -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