Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,5 @@ repos:
(
?^ci/scripts/c_glib_build\.sh$|
?^ci/scripts/c_glib_test\.sh$|
?^c_glib/test/run-test\.sh$|
)
6 changes: 3 additions & 3 deletions c_glib/test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

test_dir="$(cd $(dirname $0); pwd)"
test_dir="$(cd "$(dirname "$0")" && pwd)"
build_dir="$(cd .; pwd)"

modules=(
Expand Down Expand Up @@ -47,7 +47,7 @@ if [ "${BUILD}" != "no" ]; then
fi

for module in "${modules[@]}"; do
MODULE_TYPELIB_DIR_VAR_NAME="$(echo ${module} | tr a-z- A-Z_)_TYPELIB_DIR"
MODULE_TYPELIB_DIR_VAR_NAME="$(echo "${module}" | tr a-z- A-Z_)_TYPELIB_DIR"
module_typelib_dir=$(eval "echo \${${MODULE_TYPELIB_DIR_VAR_NAME}}")
if [ -z "${module_typelib_dir}" ]; then
module_typelib_dir="${build_dir}/${module}"
Expand All @@ -74,4 +74,4 @@ case "${DEBUGGER}" in
DEBUGGER_ARGS+=(--)
;;
esac
${DEBUGGER} "${DEBUGGER_ARGS[@]}" "${RUBY}" ${test_dir}/run-test.rb "$@"
${DEBUGGER} "${DEBUGGER_ARGS[@]}" "${RUBY}" "${test_dir}"/run-test.rb "$@"