Skip to content

Commit

Permalink
Fix mounted ssh store test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Feb 2, 2025
1 parent 1b370d9 commit b8cdb21
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/functional/build-remote-with-mounted-ssh-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ requireSandboxSupport

enableFeatures mounted-ssh-store

# N.B. encoded query param is `mounted={}`. In the future, we can just
# do `--store` with JSON, and then the nested structure will actually
# bring benefits.
nix build -Lvf simple.nix \
--arg busybox "$busybox" \
--out-link "$TEST_ROOT/result-from-remote" \
--store mounted-ssh-ng://localhost
--store 'ssh-ng://localhost?mounted=%7B%7D'

nix build -Lvf simple.nix \
--arg busybox "$busybox" \
--out-link "$TEST_ROOT/result-from-remote-new-cli" \
--store 'mounted-ssh-ng://localhost?remote-program=nix daemon'
--store 'ssh-ng://localhost?mounted=%7B%7D&remote-program=nix daemon'

# This verifies that the out link was actually created and valid. The ability
# to create out links (permanent gc roots) is the distinguishing feature of
Expand Down

0 comments on commit b8cdb21

Please sign in to comment.