X-Git-Url: http://git.scottworley.com/syncthing-autoregister/blobdiff_plain/fc02e299c578d5c3fc581426b5f84aae244cbb87..ff8eb13963762138a5193811192cedad0a5c6172:/tests/automatic-enrollment.nix diff --git a/tests/automatic-enrollment.nix b/tests/automatic-enrollment.nix index 4ff3670..5ab4efa 100644 --- a/tests/automatic-enrollment.nix +++ b/tests/automatic-enrollment.nix @@ -67,17 +67,18 @@ import ({ pkgs, lib, ... }: "${configurationWithDeviceIDs}" ) + hostDeviceIDFilename = os.path.join( + os.environ["out"], + os.path.basename("${deviceIDFilename}"), + ) + a.wait_for_unit("syncthing-autoregister.service") setConfig(a, configurationWithDeviceIDs) verifyDeviceIDSet(a, "a") a.copy_from_vm("${deviceIDFilename}") b.copy_from_host( - os.path.join( - os.environ["out"], - os.path.basename("${deviceIDFilename}"), - ), - "${deviceIDFilename}", + hostDeviceIDFilename, "${deviceIDFilename}" ) b.succeed("chown syncthing ${deviceIDFilename}") setConfig(b, configurationWithDeviceIDs)