Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d2dbf7

Browse files
committed
test
1 parent 172e8ec commit 8d2dbf7

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

benchmarks/cli/benchmark.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,10 @@ cli_version() {
122122
fi
123123
}
124124

125-
cli_commit() {
126-
if [[ "$(uname -s)" == "MINGW"* ]]; then
127-
BUILD_OPTIONS=$($(cygpath -u "$1") version --build-options)
128-
else
129-
BUILD_OPTIONS=$("$1" version --build-options)
130-
fi
131-
132-
echo "${BUILD_OPTIONS}" | grep '^built from commit: ' | sed -e 's/^built from commit: //'
133-
}
134-
135125
TEST_CLI_NAME=$(basename "${TEST_CLI}")
136126
TEST_CLI_PATH=$(fullpath "${TEST_CLI}")
137127
TEST_CLI_VERSION=$(cli_version "${TEST_CLI}")
138-
TEST_CLI_COMMIT=$(cli_commit "${TEST_CLI}")
128+
TEST_CLI_COMMIT="unknown"
139129

140130
if [ "${BASELINE_CLI}" != "" ]; then
141131
if [[ "${BASELINE_CLI}" == "/"* ]]; then
@@ -147,7 +137,7 @@ if [ "${BASELINE_CLI}" != "" ]; then
147137
BASELINE_CLI_NAME=$(basename "${BASELINE_CLI}")
148138
BASELINE_CLI_PATH=$(fullpath "${BASELINE_CLI}")
149139
BASELINE_CLI_VERSION=$(cli_version "${BASELINE_CLI}")
150-
BASELINE_CLI_COMMIT=$(cli_commit "${BASELINE_CLI}")
140+
BASELINE_CLI_COMMIT="unknown"
151141
fi
152142

153143
#

0 commit comments

Comments
 (0)