summaryrefslogtreecommitdiff
path: root/tests/run_tests.sh
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-02-26 11:51:52 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-02-26 11:51:52 +0000
commitf585763060076fdd5104409554613b9ca110f910 (patch)
treea5efde1dda2ad6004d987edbf7f7208173f605f5 /tests/run_tests.sh
parentbcfb17b890e74538655695c4f76962b16565f664 (diff)
parent087ad206db4ef25eff2c21c3d6e06194f0e217ee (diff)
downloadtbdiff-f585763060076fdd5104409554613b9ca110f910.tar.gz
Merge branch 'baserock/pedroalvarez/bscs-wrong-merge2'
Reviewed-by: Richard Maw
Diffstat (limited to 'tests/run_tests.sh')
-rwxr-xr-xtests/run_tests.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 36dff01..102aea6 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -25,11 +25,8 @@ compare_dirs() {
(cd "$1" && busybox find * -exec busybox stat -c '%n %a' {} + | sort) > "$file1"
(cd "$2" && busybox find * -exec busybox stat -c '%n %a' {} + | sort) > "$file2"
- # Compare file contents
- diff -r "$1" "$2"
-
- # Compare permissions
- diff "$file1" "$file2"
+ # Compare file contents then permissions
+ diff -r "$1" "$2" && diff "$file1" "$file2"
)
local ret="$?"