Skip to content

Commit

Permalink
[buteo] Fix test.xml failing to start unit tests. Contributes to JB#2…
Browse files Browse the repository at this point in the history
…2786

Suspect related to commit afe6c2d which made the tests to be compiled
in separate directories. At least now they are shipped in separate
directories and the xml only refers the directory part.
Made the runner tool assume the test is named the same as the directory.
  • Loading branch information
pvuorela committed Mar 30, 2021
1 parent ff4c0ed commit a566ffb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unittests/tests/runstarget.sh
Expand Up @@ -21,7 +21,8 @@ cd "${TMP_DIR}"
export LD_LIBRARY_PATH="${TESTS_DIR}:${LD_LIBRARY_PATH}"

# Accept both absolute and relative path to test executable
TEST="$(cd "${TESTS_DIR}"; readlink -f "${1}")"
TESTDIR=$(cd "${TESTS_DIR}"; readlink -f "${1}")
TEST=$(basename ${1})
shift

exec "${TEST}" "${@}" -maxwarnings 0
exec "${TESTDIR}/${TEST}" "${@}" -maxwarnings 0

0 comments on commit a566ffb

Please sign in to comment.