mkhomedir

# test that chezmoi diff without --keep-going fails when there is an error
! chezmoi diff

# test that chezmoi apply without --keep-going fails but still writes the first file
! chezmoi apply --force
cmp $HOME/1ok golden/1ok
! exists $HOME/2error
! exists $HOME/3ok

# test that chezmoi apply with --keep-going writes all files that it can without errors
! chezmoi apply --force --keep-going
cmp $HOME/1ok golden/1ok
! exists $HOME/2error
cmp $HOME/3ok golden/3ok

# FIXME add chezmoi init tests

# FIXME add chezmoi update tests

-- golden/1ok --
first
-- golden/3ok --
last
-- home/user/.local/share/chezmoi/1ok --
first
-- home/user/.local/share/chezmoi/2error.tmpl --
{{
-- home/user/.local/share/chezmoi/3ok --
last
