summaryrefslogtreecommitdiff
path: root/tests/07_dir_add_remove.sh
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-10-06 09:05:27 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2011-10-06 09:05:27 +0100
commit1e28cd5acc4a33a0f166fb9df5ec3ea9e5d7e1ee (patch)
tree32e06ae6cec026df0e44c4adeaca15e9b8999125 /tests/07_dir_add_remove.sh
parentddf863c9d17fa4f9caee338dedff882315f32a6c (diff)
downloadtbdiff-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/07_dir_add_remove.sh')
-rwxr-xr-xtests/07_dir_add_remove.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/07_dir_add_remove.sh b/tests/07_dir_add_remove.sh
index fe34a0e..eed19d2 100755
--- a/tests/07_dir_add_remove.sh
+++ b/tests/07_dir_add_remove.sh
@@ -11,14 +11,14 @@ TEST_TOOLS=$3
############# Test specific code ############
-function setup {
+setup () {
mkdir -p $ORIGIN/remove/1/2/3/4 && \
mkdir -p $TARGET/add/4/3/2/1 && \
chown -h :cdrom $TARGET/add
chown -h :cdrom $TARGET/add/4/3/2/1
}
-function check_results {
+check_results () {
test -d $ORIGIN/add/4/3/2/1 && \
test ! -d $ORIGIN/remove && \
check_same_mtime $ORIGIN/add $TARGET/add && \