diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-14 17:02:21 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-14 17:02:21 +0100 |
commit | 43ea764b160ca41a599c978f556f8248fe5380be (patch) | |
tree | 5efc971fe01673b17d16098ea27694bffc591834 /tests/07_dir_add_remove.sh | |
parent | 87f84d4305716e73f43d0e0577b8295fdff2a64d (diff) | |
download | tbdiff-43ea764b160ca41a599c978f556f8248fe5380be.tar.gz |
Restructured tests so mandatory delay between source and target
directories can be inserted, to ensure mtime is not equal
now dir_add_remove fails because the mtime of the directory
changed after a file in it was altered
Diffstat (limited to 'tests/07_dir_add_remove.sh')
-rwxr-xr-x | tests/07_dir_add_remove.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/07_dir_add_remove.sh b/tests/07_dir_add_remove.sh index a213de1..295b0f9 100755 --- a/tests/07_dir_add_remove.sh +++ b/tests/07_dir_add_remove.sh @@ -11,8 +11,11 @@ TEST_TOOLS=$3 ############# Test specific code ############ -setup () { - mkdir -p $ORIGIN/remove/1/2/3/4 && +setup_origin () { + mkdir -p $ORIGIN/remove/1/2/3/4 +} + +setup_target () { mkdir -p $TARGET/add/4/3/2/1 && mkdir -p $TARGET/addsticky && mkdir -p $TARGET/addsetgid && |