Files
cli/pkg/ssh/shell/buildLoadTest.sh
2025-10-03 04:46:18 +00:00

14 lines
445 B
Bash
Executable File

#!/usr/bin/env bash
# delete existing repo directory if it exists
# choosing to delete and re-clone to avoid merge conflicts
if [ -d {{ .LoadTestRepoDir }} ]; then
rm -rf {{ .LoadTestRepoDir }}
fi
git clone {{ .LoadTestRepo }}
echo "getting load test repo ..."
cd {{ .LoadTestRepoDir }}
git fetch --depth 1 origin {{ .LoadTestBranch }} -q
git checkout {{ .LoadTestBranch }}
eval {{ .LoadTestPath }}
echo "successfully built load test binary!"