From 7cbdb9da75d6adfa6be201930c3bc9532744ed55 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 28 Feb 2023 06:40:49 +0700 Subject: [PATCH] chore(linux): fixup merge for test kmx path --- linux/ibus-keyman/tests/scripts/setup-tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux/ibus-keyman/tests/scripts/setup-tests.sh b/linux/ibus-keyman/tests/scripts/setup-tests.sh index 28a5a1d8ea..e421932742 100755 --- a/linux/ibus-keyman/tests/scripts/setup-tests.sh +++ b/linux/ibus-keyman/tests/scripts/setup-tests.sh @@ -33,8 +33,12 @@ else exit 2 fi +# TODO: we are borrowing the KMX tests out of core; these should be shared in common +# to avoid deep links like this in future +KMX_TEST_DIR="${TOP_SRCDIR}"/../../core/tests/unit/kmx + if [ ! -d "$TESTDIR" ] || ! [[ $(find "${TESTDIR}/" -name k_\*.kmx 2>/dev/null | wc -l) -gt 0 ]]; then - if [[ $(find "${COMMON_ARCH_DIR}/tests/unit/kmx/" -name k_\*.kmx 2>/dev/null | wc -l) -gt 0 ]]; then + if [[ $(find "${KMX_TEST_DIR}/" -name k_\*.kmx 2>/dev/null | wc -l) -gt 0 ]]; then mkdir -p "$(realpath --canonicalize-missing "$TESTDIR"/..)" ln -sf "$(realpath "${KMX_TEST_DIR}")" "$TESTDIR" else