Skip to content

Commit

Permalink
Add chezmoi apply --source-path tests
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Mar 13, 2021
1 parent 4749e90 commit ebdd6f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions testdata/scripts/applysourcepath.txt
@@ -0,0 +1,15 @@
mksourcedir

# test that chezmoi apply --source-path only applies the target
chezmoi apply --source-path $CHEZMOISOURCEDIR/dot_file
! exists $HOME/.empty
exists $HOME/.file
chezmoi apply --source-path $CHEZMOISOURCEDIR/empty_dot_empty
exists $HOME/.empty

# test that chezmoi apply --source-path ignores other modified files
edit $HOME/.file
chezmoi status
stdout 'MM \.file'
chezmoi apply --source-path $CHEZMOISOURCEDIR/executable_dot_executable
exists $HOME/.executable

0 comments on commit ebdd6f4

Please sign in to comment.