benchmarks: update path to baseline cli
authorEdward Thomson <[email protected]>
Thu, 9 Jan 2025 21:45:11 +0000 (9 21:45 +0000)
committerEdward Thomson <[email protected]>
Thu, 9 Jan 2025 21:45:11 +0000 (9 21:45 +0000)
The `fullpath` function takes the cli, but doesn't keep the cli.

tests/benchmarks/benchmark.sh

index 6830064..944f26b 100755 (executable)
@@ -100,11 +100,11 @@ SYSTEM_KERNEL=$(uname -v)
 
 fullpath() {
        if [[ "$(uname -s)" == "MINGW"* && $(cygpath -u "${TEST_CLI}") == "/"* ]]; then
-               echo "${TEST_CLI}"
+               echo "$1"
        elif [[ "${TEST_CLI}" == "/"* ]]; then
-               echo "${TEST_CLI}"
+               echo "$1"
        else
-               which "${TEST_CLI}"
+               which "$1"
        fi
 }