Skip to content

Commit

Permalink
flake: workaround machine.copy_from_vm not working
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 24, 2024
1 parent 15f35a0 commit da62c64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
with:
name: coverage
path: |
/nix/store/*-nixos-test-driver-hyprland-go*/**/hyprland-go.{out,html}
hyprland-go.{out,html}
10 changes: 8 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,14 @@
print(machine.succeed("cat ${testLog}"))
print(machine.succeed("exit $(cat ${testFinished})"))
machine.copy_from_vm("${covOut}")
machine.copy_from_vm("${covHtml}")
with open("hyprland-go.out", "w") as f:
f.write(machine.succeed("cat ${covOut}"))
with open("hyprland-go.html", "w") as f:
f.write(machine.succeed("cat ${covHtml}"))
# Not working for some reason
# machine.copy_from_vm("${covOut}")
# machine.copy_from_vm("${covHtml}")
'';
};
}
Expand Down

0 comments on commit da62c64

Please sign in to comment.