Add more debugging output to "make confidence"

This commit is contained in:
tal@whatexit.org
2016-03-15 19:14:09 -04:00
parent bf36197c5b
commit 3a4a79284c

View File

@@ -78,8 +78,10 @@ function assert_file_group() {
;; ;;
esac esac
echo "DEBUG: assert_file_group X${wanted}X vs. X${found}X"
echo "DEBUG:" $(which stat)
if [[ "$wanted" != "$found" ]]; then if [[ "$wanted" != "$found" ]]; then
echo "ASSERT FAILED: $file chgrp wanted=$wanted found=$found" echo "ASSERT FAILED: $file chgrp group wanted=$wanted found=$found"
exit 1 exit 1
fi fi
} }
@@ -103,8 +105,10 @@ function assert_file_perm() {
;; ;;
esac esac
echo "DEBUG: assert_file_perm X${wanted}X vs. X${found}X"
echo "DEBUG:" $(which stat)
if [[ "$wanted" != "$found" ]]; then if [[ "$wanted" != "$found" ]]; then
echo "ASSERT FAILED: $file chgrp wanted=$wanted found=$found" echo "ASSERT FAILED: $file chgrp perm wanted=$wanted found=$found"
exit 1 exit 1
fi fi
} }