Skip to content

Commit

Permalink
tests: add 3rd opt_git_tag argument for test_install_one_version()
Browse files Browse the repository at this point in the history
... so we don't have to pass a git tag to tarball_one_version.sh every
time.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb authored and lgirdwood committed Oct 4, 2023
1 parent d7ca1da commit d4f21ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ teardown()
}

@test "install 2.1.1" {
test_install_one_version v2.1.x v2.1.1
test_install_one_version v2.1.x v2.1.1 v2.1.1
}

@test "install 1.8-rc2" {
Expand All @@ -79,7 +79,7 @@ teardown()

test_install_one_version()
{
local vdir="$1" ver="$2"
local vdir="$1" ver="$2" opt_git_tag="$3"
test_init

if false; then # download it
Expand All @@ -88,7 +88,7 @@ test_install_one_version()
else
# (re-)build it. No network needed but extra test dependency on
# tarball_one_version.sh.
"$TOP_DIR"/tarball_one_version.sh "$vdir"/"$ver" "$ver"
"$TOP_DIR"/tarball_one_version.sh "$vdir"/"$ver" "$opt_git_tag"
tar xf sof-bin-"$ver".tar.gz
fi

Expand Down

0 comments on commit d4f21ef

Please sign in to comment.