Skip to content

Commit

Permalink
Fix: copy instead of symlinking to produce extra test files
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Oct 24, 2024
1 parent 2d26325 commit cedd36b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testing/end-to-end/virtualisation-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
with lib;
let
cfg = config.playos.e2e-tests;
virtfsDir = pkgs.linkFarm "extra-files" [{
name = "playos-config.toml";
path = cfg.overlayConfig;
}];
# Note: cannot use symlinks (e.g. `linkFarm`) here
virtfsDir = pkgs.runCommand "extra-test-files" {} ''
mkdir -p $out
cp ${cfg.overlayConfig} $out/
'';
in
{
options = {
Expand Down

0 comments on commit cedd36b

Please sign in to comment.