There was an error while loading. Please reload this page.
1 parent 44e1f34 commit 555461bCopy full SHA for 555461b
1 file changed
tests/unit_test.sh
@@ -113,7 +113,7 @@ test_get_children() {
113
114
test_get_permissions() {
115
result=`get_permissions "${stdoutF}"`
116
- expected='-rw-r--r--' #check if default permission is 744
+ expected='-rw-r-----' # Check if permission is 640
117
assertEquals \
118
"the result of get_permissions() was wrong" \
119
"${expected}" "${result}"
@@ -134,6 +134,9 @@ test_check_authentication() {
134
135
136
oneTimeSetUp() {
137
+ # We need a predictable umask for the test_get_permissions.
138
+ umask 027
139
+ #
140
outputDir="${SHUNIT_TMPDIR}/output"
141
mkdir "${outputDir}"
142
stdoutF="${outputDir}/stdout"
0 commit comments