1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

tests/networking-hostname: update for lib.escapeShellArg change

This commit is contained in:
Emily 2024-09-10 22:10:38 +01:00
parent 5b2d8e9a47
commit dea497f67a

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { lib, config, pkgs, ... }:
{ {
networking.hostName = "EVE"; networking.hostName = "EVE";
@ -7,8 +7,8 @@
test = '' test = ''
echo checking hostname in /activate >&2 echo checking hostname in /activate >&2
grep "scutil --set ComputerName 'EVEs MacBook Pro'" ${config.out}/activate grep "scutil --set ComputerName 'EVEs MacBook Pro'" ${config.out}/activate
grep "scutil --set LocalHostName 'EVE'" ${config.out}/activate grep "scutil --set LocalHostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate
grep "scutil --set HostName 'EVE'" ${config.out}/activate grep "scutil --set HostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate
echo checking defaults write in ${config.out}/activate-user >&2 echo checking defaults write in ${config.out}/activate-user >&2
''; '';
} }