summaryrefslogtreecommitdiff
path: root/tests/run_tests.sh
diff options
context:
space:
mode:
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="$?"