chore(ci): drop "is_kokoro_build" helper func from test_scripts

Kokoro builds are no longer in use; all CI now runs via Jenkins
or local execution. Remove the legacy is_kokoro_build function
and its references, and simplify defaults to Jenkins vs local.
Behavior of build.sh remains unchanged for Jenkins and local runs.

Change-Id: I6c199a46337bf6d596fe706f6d31f9e188d5fe38
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
diff --git a/build/bash/common.inc b/build/bash/common.inc
index c44f131..973ae9d 100644
--- a/build/bash/common.inc
+++ b/build/bash/common.inc
@@ -35,12 +35,6 @@
 	return 0
 }
 
-# Returns true if the environment contains Kokoro build variables.
-function is_kokoro_build() {
-	[ -v KOKORO_JOB_NAME ]
-	return $?
-}
-
 # Returns true if the environment contains Jenkins build variables.
 function is_jenkins_build() {
 	[ -v JENKINS_HOME ]
@@ -117,31 +111,4 @@
 	##
 
 	REPO="${ROOT_DIR}/prebuilts/generic/repo/repo"
-
-	##
-	## Workarounds for Kokoro+Repo builds.
-	##
-	if is_kokoro_build && is_repo_build
-	then
-		# Kokoro does not correctly initialize the `.repo` folder which
-		# causes `is_repo_dirty` checks to fail. We check out the
-		# manifest as one of the projects and use it to initialize the
-		# `.repo` folder here.
-		(cd "${ROOT_DIR}/.repo_manifest" && git branch master)
-		(cd "${ROOT_DIR}" && "${REPO}" init -u .repo_manifest)
-		# Kokoro does not support '<linkfile>' manifest tags. Parse the
-		# manifest and symlink files here.
-		"$(get_script_dir)/symlink_repo.py" "${ROOT_DIR}"
-	fi
-
-	##
-	## Temporary workaround for b/152398137 (all symlinks dirty on Kokoro).
-	## The `is_kokoro_build` check does not work inside container builds.
-	## Use an environment variable with HAFNIUM_ prefix to pass that
-	## information into the container (run_in_container.sh propagates them).
-	##
-	if is_kokoro_build
-	then
-		export HAFNIUM_IGNORE_SUBMODULE_STATUS=true
-	fi
 }
diff --git a/kokoro/build.sh b/kokoro/build.sh
index c964678..5563e2b 100755
--- a/kokoro/build.sh
+++ b/kokoro/build.sh
@@ -66,14 +66,7 @@
 init_build
 
 # Assign default values to variables.
-if is_kokoro_build
-then
-	# Default config for Kokoro builds.
-	default_value HAFNIUM_HERMETIC_BUILD true
-	default_value HAFNIUM_SKIP_LONG_RUNNING_TESTS false
-	default_value USE_TFA true
-	default_value HAFNIUM_RUN_ASSERT_DISABLED_BUILD true
-elif is_jenkins_build
+if is_jenkins_build
 then
 	# Default config for Jenkins builds.
 	default_value HAFNIUM_HERMETIC_BUILD false