From 83be21ebb35bfb11d47be8b43e5bf3e3cd332b44 Mon Sep 17 00:00:00 2001 From: Zhao Li Date: Mon, 8 Jul 2019 13:10:19 -1000 Subject: [PATCH] update tests to set flag appropriately --- test/themes/base.theme.git.bats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/themes/base.theme.git.bats b/test/themes/base.theme.git.bats index 4547a6e3..bae8e021 100644 --- a/test/themes/base.theme.git.bats +++ b/test/themes/base.theme.git.bats @@ -72,6 +72,8 @@ setup_repo_with_upstream() { git clone "$remote" clone cd clone + SCM_GIT_SHOW_COMMIT_COUNT=true + git_prompt_vars assert_equal "$SCM_BRANCH" "${pre}" @@ -146,6 +148,7 @@ setup_repo_with_upstream() { pushd "${repo}" SCM_GIT_SHOW_REMOTE_INFO=true + SCM_GIT_SHOW_COMMIT_COUNT=true git_prompt_vars assert_equal "$SCM_BRANCH" "${pre}my-remote${post}" @@ -166,6 +169,7 @@ setup_repo_with_upstream() { pushd "${repo}" SCM_GIT_SHOW_REMOTE_INFO=auto + SCM_GIT_SHOW_COMMIT_COUNT=true git_prompt_vars assert_equal "$SCM_BRANCH" "${pre}${post}" @@ -202,6 +206,7 @@ setup_repo_with_upstream() { git remote add third-remote "$(mktemp -d)" SCM_GIT_SHOW_REMOTE_INFO=false + SCM_GIT_SHOW_COMMIT_COUNT=true git_prompt_vars assert_equal "$SCM_BRANCH" "${pre}${post}" @@ -223,6 +228,7 @@ setup_repo_with_upstream() { pushd "${repo}" SCM_GIT_SHOW_REMOTE_INFO=true + SCM_GIT_SHOW_COMMIT_COUNT=true git_prompt_vars assert_equal "$SCM_BRANCH" "${pre} → my-remote${post}"