Skip to content

Commit

Permalink
chore(linux): Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ermshiperete committed Sep 26, 2023
1 parent 1b5a866 commit 4ecaad6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion linux/ibus-keyman/tests/scripts/run-single-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi

function help() {
echo "Usage:"
echo " $0 [--env <envfile>] [-k] [--tap] [--surrounding-text] [--no-surrounding-text] [--wayland|--x11] [--] TEST"
echo " $0 [--env <envfile>] [-k] [--tap] [--surrounding-text] [--no-surrounding-text] [--wayland|--x11] [--check <pidfile> --cleanup <file>] [--] TEST"
echo
echo "Arguments:"
echo " --help, -h, -? Display this help"
Expand Down
7 changes: 3 additions & 4 deletions linux/ibus-keyman/tests/scripts/test-helper.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,8 @@ function _setup_display_server() {
}

function _setup_schema_and_gsettings() {
local ENV_FILE CLEANUP_FILE
local ENV_FILE
ENV_FILE=$1
CLEANUP_FILE=$2

# Install schema to temporary directory. This removes the build dependency on the keyman package.
SCHEMA_DIR=$TEMP_DATA_DIR/glib-2.0/schemas
Expand Down Expand Up @@ -275,7 +274,7 @@ function setup() {

_setup_test_dbus_server "${ENV_FILE}" "${CLEANUP_FILE}"
_setup_display_server "${ENV_FILE}" "${CLEANUP_FILE}" "${PID_FILE}" "${DISPLAY_SERVER}"
_setup_schema_and_gsettings "${ENV_FILE}" "${CLEANUP_FILE}"
_setup_schema_and_gsettings "${ENV_FILE}"
_setup_ibus "${ENV_FILE}" "${CLEANUP_FILE}" "${PID_FILE}"
}

Expand All @@ -288,7 +287,7 @@ function setup_display_server_only() {

_setup_init "${ENV_FILE}" "${CLEANUP_FILE}" "${PID_FILE}"
_setup_display_server "${ENV_FILE}" "${CLEANUP_FILE}" "${PID_FILE}" "${DISPLAY_SERVER}"
_setup_schema_and_gsettings "${ENV_FILE}" "${CLEANUP_FILE}"
_setup_schema_and_gsettings "${ENV_FILE}"
}

function cleanup() {
Expand Down

0 comments on commit 4ecaad6

Please sign in to comment.