Reorganize tests
* Split out test helper functions into tools/test_functions.sh * bin/_blackbox_common_test.sh: Unit-tests for functions. * blackbox_postdeploy: Use cp_permissions instead of chmod --reference
This commit is contained in:
@@ -30,7 +30,7 @@ echo '========== Decrypting new/changed files: START'
|
||||
while IFS= read <&99 -r unencrypted_file; do
|
||||
encrypted_file=$(get_encrypted_filename "$unencrypted_file")
|
||||
decrypt_file_overwrite "$encrypted_file" "$unencrypted_file"
|
||||
chmod --reference "$encrypted_file" "$unencrypted_file"
|
||||
cp_permissions "$encrypted_file" "$unencrypted_file"
|
||||
if [[ ! -z "$FILE_GROUP" ]]; then
|
||||
chmod g+r "$unencrypted_file"
|
||||
chgrp "$FILE_GROUP" "$unencrypted_file"
|
||||
|
||||
Reference in New Issue
Block a user