diff options
Diffstat (limited to 'tests/00_regular_file_diff.sh')
-rwxr-xr-x | tests/00_regular_file_diff.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/00_regular_file_diff.sh b/tests/00_regular_file_diff.sh index 3bd3310..613d924 100755 --- a/tests/00_regular_file_diff.sh +++ b/tests/00_regular_file_diff.sh @@ -15,6 +15,9 @@ ORG_FILE=$ORIGIN/b.txt TGT_FILE=$TARGET/b.txt setup () { + echo 1 >$ORIGIN/a.txt && + echo 2 >$TARGET/a.txt && + chgrp tty $ORIGIN/a.txt $TARGET/a.txt && echo 1 > $ORG_FILE && \ echo 2 > $TGT_FILE && \ chown :cdrom $TGT_FILE && \ @@ -22,6 +25,7 @@ setup () { } check_results () { + check_group $ORIGIN/a.txt tty && check_content $ORG_FILE "2" && \ check_perm $ORG_FILE 707 && \ check_group $ORG_FILE cdrom && \ |