From ff8eb13963762138a5193811192cedad0a5c6172 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 27 Jul 2020 16:15:46 -0700 Subject: [PATCH 1/1] Name hostDeviceIDFilename --- tests/automatic-enrollment.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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) -- 2.44.1