From 88c60e8ccfeff4b7ef40ffe3c8de4b6aff77b9fc Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Wed, 24 Jan 2024 14:51:09 -0500 Subject: [PATCH] take flare at very end, more screenshots --- tests/kolide-launcher.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/kolide-launcher.nix b/tests/kolide-launcher.nix index 11aa0a0..5ec72b3 100644 --- a/tests/kolide-launcher.nix +++ b/tests/kolide-launcher.nix @@ -116,6 +116,10 @@ pkgs.nixosTest { machine.wait_for_file("/var/kolide-k2/k2device.kolide.com/menu.json") machine.screenshot("test-screen4.png") + with subtest("desktop check again"): + machine.sleep(180) + machine.screenshot("test-screen5.png") + with subtest("launcher flare"): _, launcher_find_stdout = machine.execute("ls /nix/store | grep kolide-launcher-") machine.execute("/nix/store/" + launcher_find_stdout.strip() + "/bin/launcher flare --save local") @@ -125,9 +129,7 @@ pkgs.nixosTest { flare_path = "./" + flare_ls_out.strip() machine.copy_from_vm(flare_path, "./") - with subtest("desktop check again"): - machine.sleep(180) - machine.screenshot("test-screen5.png") + machine.screenshot("test-screen6.png") machine.shutdown() '';