forked from lix-project/lix
Fix the store ping
test
This commit is contained in:
parent
d139474f48
commit
3dc1418216
|
@ -4,8 +4,9 @@ STORE_INFO=$(nix store ping 2>&1)
|
||||||
|
|
||||||
echo "$STORE_INFO" | grep "Store URL: ${NIX_REMOTE}"
|
echo "$STORE_INFO" | grep "Store URL: ${NIX_REMOTE}"
|
||||||
|
|
||||||
if isDaemonNewer "2.7pre20220126"; then
|
if [[ -v NIX_DAEMON_PACKAGE ]] && isDaemonNewer "2.7.0pre20220126"; then
|
||||||
echo "$STORE_INFO" | grep "Version: $($NIX_DAEMON_PACKAGE/bin/nix-daemon --version)"
|
DAEMON_VERSION=$($NIX_DAEMON_PACKAGE/bin/nix-daemon --version | cut -d' ' -f3)
|
||||||
|
echo "$STORE_INFO" | grep "Version: $DAEMON_VERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
expect 127 NIX_REMOTE=unix:$PWD/store nix store ping || \
|
expect 127 NIX_REMOTE=unix:$PWD/store nix store ping || \
|
||||||
|
|
Loading…
Reference in a new issue