Fix up tests to have nested ignored files

This commit is contained in:
Benjamin Sago 2017-09-27 13:03:21 +01:00
parent 7339b753fb
commit 2b099d8ba0
5 changed files with 14 additions and 1 deletions

3
Vagrantfile vendored
View File

@ -541,6 +541,9 @@ Vagrant.configure(2) do |config|
mkdir "ignoreds" mkdir "ignoreds"
touch "ignoreds/music.mp3" touch "ignoreds/music.mp3"
touch "ignoreds/music.m4a" touch "ignoreds/music.m4a"
mkdir "ignoreds/nested"
touch "ignoreds/nested/70s grove.mp3"
touch "ignoreds/nested/funky chicken.m4a"
mkdir "target" mkdir "target"
touch "target/another ignored file" touch "target/another ignored file"

View File

@ -4,6 +4,7 @@
/testcases/git2/ignoreds: /testcases/git2/ignoreds:
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -N music.m4a .rw-rw-r-- 0 cassowary  1 Jan 12:34 -N music.m4a
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- music.mp3 .rw-rw-r-- 0 cassowary  1 Jan 12:34 -- music.mp3
drwxrwxr-x - cassowary  1 Jan 12:34 -N nested
/testcases/git2/target: /testcases/git2/target:
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- another ignored file .rw-rw-r-- 0 cassowary  1 Jan 12:34 -- another ignored file

View File

@ -1,2 +1,3 @@
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -N music.m4a .rw-rw-r-- 0 cassowary  1 Jan 12:34 -N music.m4a
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- music.mp3 .rw-rw-r-- 0 cassowary  1 Jan 12:34 -- music.mp3
drwxrwxr-x - cassowary  1 Jan 12:34 -N nested

View File

@ -19,6 +19,11 @@
/testcases/git2/ignoreds: /testcases/git2/ignoreds:
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -N music.m4a .rw-rw-r-- 0 cassowary  1 Jan 12:34 -N music.m4a
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- music.mp3 .rw-rw-r-- 0 cassowary  1 Jan 12:34 -- music.mp3
drwxrwxr-x - cassowary  1 Jan 12:34 -N nested
/testcases/git2/ignoreds/nested:
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- 70s grove.mp3
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -N funky chicken.m4a
/testcases/git2/target: /testcases/git2/target:
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- another ignored file .rw-rw-r-- 0 cassowary  1 Jan 12:34 -- another ignored file

View File

@ -8,6 +8,9 @@
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- │ └── subfile .rw-rw-r-- 0 cassowary  1 Jan 12:34 -- │ └── subfile
drwxrwxr-x - cassowary  1 Jan 12:34 -N ├── ignoreds drwxrwxr-x - cassowary  1 Jan 12:34 -N ├── ignoreds
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -N │ ├── music.m4a .rw-rw-r-- 0 cassowary  1 Jan 12:34 -N │ ├── music.m4a
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- │ └── music.mp3 .rw-rw-r-- 0 cassowary  1 Jan 12:34 -- │ ├── music.mp3
drwxrwxr-x - cassowary  1 Jan 12:34 -N │ └── nested
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -- │ ├── 70s grove.mp3
.rw-rw-r-- 0 cassowary  1 Jan 12:34 -N │ └── funky chicken.m4a
drwxrwxr-x - cassowary  1 Jan 12:34 -- └── target drwxrwxr-x - cassowary  1 Jan 12:34 -- └── target
.rw-rw-r-- 0 cassowary  1 Jan 12:34 --  └── another ignored file .rw-rw-r-- 0 cassowary  1 Jan 12:34 --  └── another ignored file