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
commit13c300f6fa8e52c498bf9843f6b8b6f61cab935b (patch)
tree7b916141a1b54a3bfdf28546acb564026f83a2f1 /scripts
parent8c58f92f675671bcd4bba3081bf4f1fae0566867 (diff)
downloadarchsetup-13c300f6fa8e52c498bf9843f6b8b6f61cab935b.tar.gz
archsetup-13c300f6fa8e52c498bf9843f6b8b6f61cab935b.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"