aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2025-02-06 13:11:28 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-03-12 08:54:21 +0100
commitbe6251cb3234b292cbc3bb9b661d6a0777115f17 (patch)
tree794164306628f15d1d7a1ae0612215c366affaa8
parent227aa4bc0f094e6168980e83542a7460523e0f51 (diff)
downloadayatana-indicator-datetime-be6251cb3234b292cbc3bb9b661d6a0777115f17.tar.gz
ayatana-indicator-datetime-be6251cb3234b292cbc3bb9b661d6a0777115f17.tar.bz2
ayatana-indicator-datetime-be6251cb3234b292cbc3bb9b661d6a0777115f17.zip
tests/run-eds-ics-test.sh: Quote file paths
-rwxr-xr-xtests/run-eds-ics-test.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/run-eds-ics-test.sh b/tests/run-eds-ics-test.sh
index 4cbc0d3..01ebc48 100755
--- a/tests/run-eds-ics-test.sh
+++ b/tests/run-eds-ics-test.sh
@@ -50,21 +50,21 @@ if [ -d ${CONFIG_DIR} ]; then
fi
# if there's a specific ics file to test, copy it on top of the canned config files
-if [ -e ${ICS_FILE} ]; then
+if [ -e "${ICS_FILE}" ]; then
echo "copying ${ICS_FILE} into $HOME"
mkdir -p ${XDG_DATA_HOME}/evolution/tasks/system/
- cp --verbose --archive ${ICS_FILE} ${XDG_DATA_HOME}/evolution/tasks/system/tasks.ics
+ cp --verbose --archive "${ICS_FILE}" ${XDG_DATA_HOME}/evolution/tasks/system/tasks.ics
fi
# prepare online accounts database
-if [ -e ${ACCOUNTS_DB} ]; then
+if [ -e "${ACCOUNTS_DB}" ]; then
echo "copying ${ACCOUNTS_DB} into $HOME"
mkdir -p ${XDG_CONFIG_HOME}/libaccounts-glib/
- cp --verbose --archive ${ACCOUNTS_DB} ${XDG_CONFIG_HOME}/libaccounts-glib/accounts.db
+ cp --verbose --archive "${ACCOUNTS_DB}" ${XDG_CONFIG_HOME}/libaccounts-glib/accounts.db
fi
# run the test
-${TEST_RUNNER} --keep-env --max-wait=90 --task ${TEST_EXEC} --task-name ${TEST_NAME} --wait-until-complete
+${TEST_RUNNER} --keep-env --max-wait=90 --task "${TEST_EXEC}" --task-name ${TEST_NAME} --wait-until-complete
rv=$?
# if the test passed, blow away the tmpdir