From 6fe67b865d37f499eef70582380a59582d2898b7 Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Wed, 24 Jan 2024 14:33:06 -0500 Subject: [PATCH] remove troubleshooting, hope for desktop --- tests/kolide-launcher.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/tests/kolide-launcher.nix b/tests/kolide-launcher.nix index 3ac462a..4bb2c61 100644 --- a/tests/kolide-launcher.nix +++ b/tests/kolide-launcher.nix @@ -125,17 +125,9 @@ pkgs.nixosTest { flare_path = "./" + flare_ls_out.strip() machine.copy_from_vm(flare_path, "./") - with subtest("launcher troubleshooting"): - root_status, root_stdout = machine.execute("ls -al /var/kolide-k2/k2device.kolide.com/") - print(root_status) - print(root_stdout) - - machine.systemctl("restart kolide-launcher.service") - machine.sleep(15) - status, stdout = machine.execute("journalctl --unit=kolide-launcher.service -n 100 --no-pager") - print(status) - print(stdout) - print(machine.get_screen_text()) + with subtest("desktop check again"): + machine.wait_until_succeeds("pgrep -U ${uid} launcher", timeout=120) + machine.screenshot("test-screen5.png") machine.shutdown() '';