aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-22 20:34:03 -0500
committerCraig Jennings <c@cjennings.net>2026-05-22 20:34:03 -0500
commiteb55f2274e93f7f4c5be36e04ec70cd0f9f40efe (patch)
tree374a07c620b3ee474f46796f6377186c25cf247f /scripts
parentd34256b65d3c7462414994b9ed2fb164d6636a2c (diff)
downloadarchsetup-eb55f2274e93f7f4c5be36e04ec70cd0f9f40efe.tar.gz
archsetup-eb55f2274e93f7f4c5be36e04ec70cd0f9f40efe.zip
fix(testing): expect ~/.dotfiles symlink target in dotfiles validation
Diffstat (limited to 'scripts')
-rw-r--r--scripts/testing/lib/validation.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/testing/lib/validation.sh b/scripts/testing/lib/validation.sh
index 5d9587d..d81332b 100644
--- a/scripts/testing/lib/validation.sh
+++ b/scripts/testing/lib/validation.sh
@@ -368,9 +368,11 @@ validate_dotfiles() {
return 1
fi
- # 2. Check symlink points to correct location
+ # 2. Check symlink points to correct location. archsetup now clones the
+ # dotfiles repo to ~/.dotfiles and stows from there (DOTFILES_DIR default),
+ # so the link resolves to .dotfiles/common/.zshrc, not the old in-repo path.
local target=$(ssh_cmd "readlink /home/cjennings/.zshrc")
- local expected_pattern="code/archsetup/dotfiles/common/.zshrc"
+ local expected_pattern=".dotfiles/common/.zshrc"
if ! echo "$target" | grep -q "$expected_pattern"; then
validation_fail "Dotfiles symlink points to wrong location: $target"