Commit 283d0164 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada
Browse files

nixos-rebuild-ng: do not create result symlink in test/dry-activate

parent cc0851f9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -134,7 +134,8 @@ def _build_system(
    flake_common_flags: Args,
) -> Path:
    dry_run = action == Action.DRY_BUILD
    no_link = action in (Action.SWITCH, Action.BOOT)
    # actions that we will not add a /result symlink in CWD
    no_link = action in (Action.SWITCH, Action.BOOT, Action.TEST, Action.DRY_ACTIVATE)

    match (action, args.rollback, build_host, flake):
        case (Action.SWITCH | Action.BOOT, True, _, _):
+1 −0
Original line number Diff line number Diff line
@@ -1020,6 +1020,7 @@ def test_execute_test_flake(mock_run: Mock, tmp_path: Path) -> None:
                    "build",
                    "--print-out-paths",
                    'github:user/repo#nixosConfigurations."hostname".config.system.build.toplevel',
                    "--no-link",
                ],
                check=True,
                stdout=PIPE,