From d1a1bcf1ebaa8fccbae819c2e8eb361f3f0de7aa Mon Sep 17 00:00:00 2001 From: Qubasa Date: Mon, 5 Feb 2024 13:37:22 +0700 Subject: [PATCH] Added --debug flag clan command in nix tests --- checks/backups/flake-module.nix | 6 +++--- checks/installation/flake-module.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/checks/backups/flake-module.nix b/checks/backups/flake-module.nix index 5f958f698..f57d7a671 100644 --- a/checks/backups/flake-module.nix +++ b/checks/backups/flake-module.nix @@ -110,16 +110,16 @@ in client.succeed("echo testing > /var/test-backups/somefile") # create - client.succeed("clan --flake ${../..} backups create test_backup_client") + client.succeed("clan --debug --flake ${../..} backups create test_backup_client") client.wait_until_succeeds("! systemctl is-active borgbackup-job-test_backup_server") # list backup_id = json.loads(client.succeed("borg-job-test_backup_server list --json"))["archives"][0]["archive"] - assert(backup_id in client.succeed("clan --flake ${../..} backups list test_backup_client")) + assert(backup_id in client.succeed("clan --debug --flake ${../..} backups list test_backup_client")) # restore client.succeed("rm -f /var/test-backups/somefile") - client.succeed(f"clan --flake ${../..} backups restore test_backup_client borgbackup {backup_id}") + client.succeed(f"clan --debug --flake ${../..} backups restore test_backup_client borgbackup {backup_id}") assert(client.succeed("cat /var/test-backups/somefile").strip() == "testing") ''; } diff --git a/checks/installation/flake-module.nix b/checks/installation/flake-module.nix index 8fca0a464..0769c67f6 100644 --- a/checks/installation/flake-module.nix +++ b/checks/installation/flake-module.nix @@ -107,7 +107,7 @@ in client.succeed("${pkgs.coreutils}/bin/install -Dm 600 ${../lib/ssh/privkey} /root/.ssh/id_ed25519") client.wait_until_succeeds("ssh -o StrictHostKeyChecking=accept-new -v root@target hostname") - client.succeed("clan --flake ${../..} machines install test_install_machine root@target >&2") + client.succeed("clan --debug --flake ${../..} machines install test_install_machine root@target >&2") try: target.shutdown() except BrokenPipeError: