Skip to content

Commit

Permalink
run foreman commands instead of cargo run
Browse files Browse the repository at this point in the history
  • Loading branch information
afujiwara-roblox committed Nov 2, 2023
1 parent c2ebdb2 commit 3dd539b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/end-to-end-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ write_foreman_toml () {

verify_github_tool () {
write_foreman_toml github $1 $2 $3
cargo run --release -- install
foreman install
verify_tool_version $1 $3
rm foreman.toml

# for compatibility, verify that `source` also works
write_foreman_toml source $1 $2 $3
cargo run --release -- install
foreman install
verify_tool_version $1 $3
rm foreman.toml
}

verify_gitlab_tool () {
write_foreman_toml gitlab $1 $2 $3
cargo run --release -- install
foreman install
verify_tool_version $1 $3
rm foreman.toml
}
Expand All @@ -44,7 +44,7 @@ verify_install_all_before_fail () {
echo "$1 = { github = \"$2\", version = \"=$3\" }" >> foreman.toml
{
# try
cargo run --release -- install
foreman install
} || {
# finally
verify_tool_version $1 $3
Expand Down

0 comments on commit 3dd539b

Please sign in to comment.