From f788157bc70c61a6a2dcebba342dc1e052ae563e Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 29 Sep 2023 23:52:03 -0700 Subject: [PATCH] tests: add 3rd opt_git_tag argument for test_install_one_version() ... so we don't have to pass a git tag to tarball_one_version.sh every time. Signed-off-by: Marc Herbert --- tests/tests.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tests.bats b/tests/tests.bats index ce4abd6..aad5b60 100644 --- a/tests/tests.bats +++ b/tests/tests.bats @@ -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" { @@ -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 @@ -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