diff options
-rwxr-xr-x | automated/linux/cyclictest/cyclictest.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/automated/linux/cyclictest/cyclictest.sh b/automated/linux/cyclictest/cyclictest.sh index 20caa2e6..88bb4d55 100755 --- a/automated/linux/cyclictest/cyclictest.sh +++ b/automated/linux/cyclictest/cyclictest.sh @@ -34,9 +34,12 @@ done create_out_dir "${OUTPUT}" # Run cyclictest. -detect_abi -# shellcheck disable=SC2154 -./bin/"${abi}"/cyclictest -p "${PRIORITY}" -i "${INTERVAL}" -t "${THREADS}" \ +if ! binary=$(which cyclictest); then + detect_abi + # shellcheck disable=SC2154 + binary="./bin/${abi}/cyclictest" +fi +"${binary}" -p "${PRIORITY}" -i "${INTERVAL}" -t "${THREADS}" \ -l "${LOOPS}" | tee "${LOGFILE}" # Parse test log. |