diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-06 09:05:27 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-06 09:05:27 +0100 |
commit | 1e28cd5acc4a33a0f166fb9df5ec3ea9e5d7e1ee (patch) | |
tree | 32e06ae6cec026df0e44c4adeaca15e9b8999125 /tests/00_regular_file_diff.sh | |
parent | ddf863c9d17fa4f9caee338dedff882315f32a6c (diff) | |
download | tbdiff-1e28cd5acc4a33a0f166fb9df5ec3ea9e5d7e1ee.tar.gz |
Removed bashisms from test scripts, so sh should be able to run them
The temporary test directory is now made using mktemp -d instead of using uuid
mktemp comes with coreutils, uuid does not, and mktemp makes the directory for
you.
Diffstat (limited to 'tests/00_regular_file_diff.sh')
-rwxr-xr-x | tests/00_regular_file_diff.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/00_regular_file_diff.sh b/tests/00_regular_file_diff.sh index 4eb6672..3bd3310 100755 --- a/tests/00_regular_file_diff.sh +++ b/tests/00_regular_file_diff.sh @@ -14,14 +14,14 @@ TEST_TOOLS=$3 ORG_FILE=$ORIGIN/b.txt TGT_FILE=$TARGET/b.txt -function setup { +setup () { echo 1 > $ORG_FILE && \ echo 2 > $TGT_FILE && \ chown :cdrom $TGT_FILE && \ chmod 707 $TGT_FILE } -function check_results { +check_results () { check_content $ORG_FILE "2" && \ check_perm $ORG_FILE 707 && \ check_group $ORG_FILE cdrom && \ |