diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-22 20:34:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-22 20:34:03 -0500 |
| commit | 13c300f6fa8e52c498bf9843f6b8b6f61cab935b (patch) | |
| tree | 7b916141a1b54a3bfdf28546acb564026f83a2f1 /scripts/testing/lib | |
| parent | 8c58f92f675671bcd4bba3081bf4f1fae0566867 (diff) | |
| download | archsetup-13c300f6fa8e52c498bf9843f6b8b6f61cab935b.tar.gz archsetup-13c300f6fa8e52c498bf9843f6b8b6f61cab935b.zip | |
fix(testing): expect ~/.dotfiles symlink target in dotfiles validation
Diffstat (limited to 'scripts/testing/lib')
| -rw-r--r-- | scripts/testing/lib/validation.sh | 6 |
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" |
