externalTests: Add support for cloning repos at a specific commit

This commit is contained in:
Kamil Śliwak
2022-01-10 18:38:48 +01:00
parent e2fe14b0e4
commit b60b596741
7 changed files with 35 additions and 17 deletions
+3 -2
View File
@@ -42,7 +42,8 @@ function test_fn {
function trident_test
{
local repo="https://github.com/sushiswap/trident"
local branch=master
local ref_type=branch
local ref="master"
local config_file="hardhat.config.ts"
local config_var=config
@@ -62,7 +63,7 @@ function trident_test
print_optimizer_presets_or_exit "$selected_optimizer_presets"
setup_solc "$DIR" "$BINARY_TYPE" "$BINARY_PATH"
download_project "$repo" "$branch" "$DIR"
download_project "$repo" "$ref_type" "$ref" "$DIR"
# TODO: Currently tests work only with the exact versions from yarn.lock.
# Re-enable this when https://github.com/sushiswap/trident/issues/284 is fixed.